mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-06-04 11:13:58 +08:00
refs #68, disabled fs::space test for error case as web environment returns space for the virtual fs even for unexisting paths
This commit is contained in:
parent
3131e9735d
commit
a47a874bee
@ -2518,6 +2518,7 @@ TEST_CASE("30.10.15.34 space", "[filesystem][operations][fs.op.space]")
|
|||||||
CHECK(si.free >= si.available);
|
CHECK(si.free >= si.available);
|
||||||
CHECK(!ec);
|
CHECK(!ec);
|
||||||
}
|
}
|
||||||
|
#ifdef GHC_OS_WEB // statvfs under emscripten always returns a result, so this tests would fail
|
||||||
{
|
{
|
||||||
std::error_code ec;
|
std::error_code ec;
|
||||||
fs::space_info si;
|
fs::space_info si;
|
||||||
@ -2528,6 +2529,7 @@ TEST_CASE("30.10.15.34 space", "[filesystem][operations][fs.op.space]")
|
|||||||
CHECK(ec);
|
CHECK(ec);
|
||||||
}
|
}
|
||||||
CHECK_THROWS_AS(fs::space("foobar42"), fs::filesystem_error);
|
CHECK_THROWS_AS(fs::space("foobar42"), fs::filesystem_error);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("30.10.15.35 status", "[filesystem][operations][fs.op.status]")
|
TEST_CASE("30.10.15.35 status", "[filesystem][operations][fs.op.status]")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user