Skip to content

Commit

Permalink
Use unique file name in fstream_test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lastique committed Jan 8, 2024
1 parent d574ae5 commit ccbb58c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/fstream_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace {

bool cleanup = true;

void test(const fs::path& p)
void test(fs::path const& p)
{
fs::remove(p);
{
Expand Down Expand Up @@ -188,7 +188,8 @@ int cpp_main(int argc, char*[])
std::wstring ws(L"wide_fstream_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));

#if !defined(BOOST_FILESYSTEM_DETAIL_NO_CXX11_MOVABLE_FSTREAMS) && !defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS)
test_movable();
Expand Down

0 comments on commit ccbb58c

Please sign in to comment.