Skip to content

Commit

Permalink
changed cwd comparison to equivalent.
Browse files Browse the repository at this point in the history
  • Loading branch information
klemens-morgenstern committed Jan 13, 2025
1 parent e842a06 commit 1b5272a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/v2/ext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ BOOST_AUTO_TEST_CASE(test_cwd_exe)
boost::asio::io_context ctx;
bp2::process proc(ctx, pth, {"sleep", "10000"},
bp2::process_start_dir{tmp});
auto tt = bp2::ext::cwd(proc.handle()).string();
if (tt.back() == '\\')
tt.pop_back();
BOOST_CHECK_EQUAL(tt, tmp);
auto tt = bp2::ext::cwd(proc.handle());


BOOST_CHECK_MESSAGE(bp2::filesystem::equivalent(tmp, tt), tmp << " == " << tt);
bp2::error_code ec;
bp2::filesystem::remove(tmp, ec);
}
Expand Down

0 comments on commit 1b5272a

Please sign in to comment.