Skip to content

Commit c0b3b7f

Browse files
committed
Use a unique path in cstdio test.
1 parent d38f590 commit c0b3b7f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/cstdio_test.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ int cpp_main(int argc, char*[])
7979

8080
// test narrow characters
8181
std::cout << "narrow character tests:\n";
82-
test("narrow_fopen_test");
82+
test(fs::unique_path("narrow_fopen_test-%%%%-%%%%.txt"));
8383

8484
// So that tests are run with known encoding, use Boost UTF-8 codecvt
8585
std::locale global_loc = std::locale();
@@ -94,7 +94,8 @@ int cpp_main(int argc, char*[])
9494
std::wstring ws(L"wide_fopen_test_");
9595
ws.push_back(static_cast< wchar_t >(0x2780));
9696
ws.push_back(static_cast< wchar_t >(0x263A));
97-
test(ws);
97+
ws.append(L"-%%%%-%%%%.txt");
98+
test(fs::unique_path(ws));
9899

99100
return ::boost::report_errors();
100101
}

0 commit comments

Comments
 (0)