Skip to content

Commit e402bad

Browse files
committed
Merge branch 'master' of github.com:gulrak/filesystem
2 parents 231b64f + 51d62f8 commit e402bad

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

test/filesystem_test.cpp

+13
Original file line numberDiff line numberDiff line change
@@ -2921,6 +2921,19 @@ TEST_CASE("Windows: path namespace handling", "[filesystem][path][fs.path.win.na
29212921
#endif
29222922
}
29232923

2924+
TEST_CASE("Windows: Mapped folders handling ", "[filesystem][fs.win][fs.win.mapped]")
2925+
{
2926+
#ifdef GHC_OS_WINDOWS
2927+
// this test expects a mapped volume on C:\\fs-test as is the case on the development test system
2928+
// does nothing on other systems
2929+
if (fs::exists("C:\\fs-test")) {
2930+
CHECK(fs::canonical("C:\\fs-test\\Test.txt").string() == "C:\\fs-test\\Test.txt");
2931+
}
2932+
#else
2933+
WARN("Windows specific tests are empty on non-Windows systems.");
2934+
#endif
2935+
}
2936+
29242937
TEST_CASE("Windows: Deletion of Read-only Files", "[filesystem][fs.win][fs.win.remove]")
29252938
{
29262939
#ifdef GHC_OS_WINDOWS

test/impl_test.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// where exactly one cpp includes fs_impl.hpp and all others use
44
// fs_fwd.hpp (to test this with maximum functionality, the unit tests
55
// are included here, signaling they should only include the fs_fwd.hpp)
6-
#define NOMINMAX
76
#include <ghc/fs_impl.hpp>
87
#define CATCH_CONFIG_MAIN
98
#include "catch.hpp"

0 commit comments

Comments
 (0)