diff --git a/test/filesystem_test.cpp b/test/filesystem_test.cpp index ee61c6f..4727a92 100644 --- a/test/filesystem_test.cpp +++ b/test/filesystem_test.cpp @@ -2890,6 +2890,19 @@ TEST_CASE("Windows: path namespace handling", "[filesystem][path][fs.path.win.na #endif } +TEST_CASE("Windows: Mapped folders handling ", "[filesystem][fs.win][fs.win.mapped]") +{ +#ifdef GHC_OS_WINDOWS + // this test expects a mapped volume on C:\\fs-test as is the case on the development test system + // does nothing on other systems + if (fs::exists("C:\\fs-test")) { + CHECK(fs::canonical("C:\\fs-test\\Test.txt").string() == "C:\\fs-test\\Test.txt"); + } +#else + WARN("Windows specific tests are empty on non-Windows systems."); +#endif +} + TEST_CASE("Windows: Deletion of Read-only Files", "[filesystem][fs.win][fs.win.remove]") { #ifdef GHC_OS_WINDOWS diff --git a/test/impl_test.cpp b/test/impl_test.cpp index 1652178..092be63 100644 --- a/test/impl_test.cpp +++ b/test/impl_test.cpp @@ -3,7 +3,6 @@ // where exactly one cpp includes fs_impl.hpp and all others use // fs_fwd.hpp (to test this with maximum functionality, the unit tests // are included here, signaling they should only include the fs_fwd.hpp) -#define NOMINMAX #include #define CATCH_CONFIG_MAIN #include "catch.hpp"