From a47a874bee117ac7e1dc90625b7d0ebff02fda34 Mon Sep 17 00:00:00 2001 From: Steffen Schuemann Date: Sat, 22 Aug 2020 18:16:01 +0200 Subject: [PATCH] refs #68, disabled fs::space test for error case as web environment returns space for the virtual fs even for unexisting paths --- test/filesystem_test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/filesystem_test.cpp b/test/filesystem_test.cpp index 55d219e..88c9e71 100644 --- a/test/filesystem_test.cpp +++ b/test/filesystem_test.cpp @@ -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; @@ -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]")