From 51d62f88bb87e7540b38eb7e16a5d935c5f4c2ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Sch=C3=BCmann?= Date: Sun, 23 May 2021 16:27:54 +0200 Subject: [PATCH] Fix for merge error and failing impl_test compile. --- test/filesystem_test.cpp | 13 +++++++++++++ test/impl_test.cpp | 1 - 2 files changed, 13 insertions(+), 1 deletion(-) 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"