Skip to content

Commit

Permalink
test: simplify path handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mhx committed Nov 19, 2024
1 parent 907ad37 commit 4a2f38d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/tools_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ TEST_P(tools_test, end_to_end) {
std::chrono::seconds const timeout{5};
#endif
dwarfs::temporary_directory tempdir("dwarfs");
auto td = fs::path(tempdir.path().string());
auto td = tempdir.path();
auto image = td / "test.dwarfs";
auto image_hdr = td / "test_hdr.dwarfs";
auto fsdata_dir = td / "fsdata";
Expand Down Expand Up @@ -1236,7 +1236,7 @@ TEST_P(tools_test, mutating_and_error_ops) {
std::chrono::seconds const timeout{5};
#endif
dwarfs::temporary_directory tempdir("dwarfs");
auto td = fs::path(tempdir.path().string());
auto td = tempdir.path();
auto mountpoint = td / "mnt";
auto file = mountpoint / "bench.sh";
auto empty_dir = mountpoint / "empty";
Expand Down Expand Up @@ -1445,7 +1445,7 @@ TEST_P(tools_test, categorize) {

std::chrono::seconds const timeout{5};
dwarfs::temporary_directory tempdir("dwarfs");
auto td = fs::path(tempdir.path().string());
auto td = tempdir.path();
auto image = td / "test.dwarfs";
auto image_recompressed = td / "test2.dwarfs";
auto fsdata_dir = td / "fsdata";
Expand Down Expand Up @@ -1703,7 +1703,7 @@ INSTANTIATE_TEST_SUITE_P(

TEST(tools_test, dwarfsextract_progress) {
dwarfs::temporary_directory tempdir("dwarfs");
auto td = fs::path(tempdir.path().string());
auto td = tempdir.path();
auto tarfile = td / "output.tar";

auto out =
Expand All @@ -1723,7 +1723,7 @@ TEST(tools_test, dwarfsextract_progress) {

TEST(tools_test, dwarfsextract_stdout) {
dwarfs::temporary_directory tempdir("dwarfs");
auto td = fs::path(tempdir.path().string());
auto td = tempdir.path();

auto out = subprocess::check_run(dwarfsextract_bin, "-i", test_catdata_dwarfs,
"-f", "mtree");
Expand All @@ -1736,7 +1736,7 @@ TEST(tools_test, dwarfsextract_stdout) {

TEST(tools_test, dwarfsextract_file_out) {
dwarfs::temporary_directory tempdir("dwarfs");
auto td = fs::path(tempdir.path().string());
auto td = tempdir.path();
auto outfile = td / "output.mtree";

auto out = subprocess::check_run(dwarfsextract_bin, "-i", test_catdata_dwarfs,
Expand Down

0 comments on commit 4a2f38d

Please sign in to comment.