Add GHC_FILESYSTEM_FWD_TEST check in filesystem tests

This commit is contained in:
Steffen Schümann 2026-07-12 11:23:18 +02:00
parent 442d95aa41
commit 9a98ce0d2b

View File

@ -1234,7 +1234,7 @@ TEST_CASE("fs.class.filesystem_error - class filesystem_error", "[filesystem][fi
CHECK(!std::string(fse.what()).empty()); CHECK(!std::string(fse.what()).empty());
CHECK(fse.path1() == "foo/bar"); CHECK(fse.path1() == "foo/bar");
CHECK(fse.path2() == "some/other"); CHECK(fse.path2() == "some/other");
#if defined(GHC_OS_WINDOWS) && !defined(USE_STD_FS) #if defined(GHC_OS_WINDOWS) && !defined(USE_STD_FS) && !defined(GHC_FILESYSTEM_FWD_TEST)
CHECK_FALSE(fs::detail::systemErrorText(ERROR_FILE_NOT_FOUND).empty()); CHECK_FALSE(fs::detail::systemErrorText(ERROR_FILE_NOT_FOUND).empty());
const DWORD unknownError = 0xffffffffu; const DWORD unknownError = 0xffffffffu;
const auto unknownErrorText = fs::detail::systemErrorText(unknownError); const auto unknownErrorText = fs::detail::systemErrorText(unknownError);