Skip to content

Commit

Permalink
refs #68, disabled fs::space test for error case as web environment r…
Browse files Browse the repository at this point in the history
…eturns space for the virtual fs even for unexisting paths
  • Loading branch information
gulrak committed Aug 22, 2020
1 parent 3131e97 commit a47a874
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/filesystem_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2518,6 +2518,7 @@ TEST_CASE("30.10.15.34 space", "[filesystem][operations][fs.op.space]")
CHECK(si.free >= si.available);
CHECK(!ec);
}
#ifdef GHC_OS_WEB // statvfs under emscripten always returns a result, so this tests would fail
{
std::error_code ec;
fs::space_info si;
Expand All @@ -2528,6 +2529,7 @@ TEST_CASE("30.10.15.34 space", "[filesystem][operations][fs.op.space]")
CHECK(ec);
}
CHECK_THROWS_AS(fs::space("foobar42"), fs::filesystem_error);
#endif
}

TEST_CASE("30.10.15.35 status", "[filesystem][operations][fs.op.status]")
Expand Down

0 comments on commit a47a874

Please sign in to comment.