Skip to content

Commit

Permalink
Use a unique path in cstdio test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lastique committed Jan 14, 2024
1 parent d38f590 commit c0b3b7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/cstdio_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ int cpp_main(int argc, char*[])

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

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

return ::boost::report_errors();
}

0 comments on commit c0b3b7f

Please sign in to comment.