diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2020-11-24 15:06:41 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2020-11-24 15:06:41 +0300 |
commit | 63cfa5af86526937360189594852605d6384dddf (patch) | |
tree | 528b38a949946cb3a6d7d588769ab63a0e3f97a4 /test | |
parent | b15941ccbc9a6e77ea2614667c773534f4e6a2e7 (diff) |
Add path view special casing for VS2017 Experimental Filesystem.
Diffstat (limited to 'test')
-rw-r--r-- | test/tests/path_view.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/tests/path_view.cpp b/test/tests/path_view.cpp index 4d4008f6..7e051462 100644 --- a/test/tests/path_view.cpp +++ b/test/tests/path_view.cpp @@ -115,7 +115,11 @@ static inline void TestPathView() llfio::path_view e(p); // NOLINT llfio::path_view f(e.filename()); e = e.remove_filename(); +#if LLFIO_USING_EXPERIMENTAL_FILESYSTEM && defined(_MSC_VER) + BOOST_CHECK(0 == e.compare<>("/mnt/c/Users/ned/Documents/boostish/afio/programs/build_posix/testdir")); +#else BOOST_CHECK(0 == e.compare<>("/mnt/c/Users/ned/Documents/boostish/afio/programs/build_posix/testdir/")); +#endif BOOST_CHECK(0 == f.compare<>("0")); // Trailing BOOST_CHECK(0 == llfio::path_view("/a/b/").without_trailing_separator().compare<>("/a/b")); @@ -166,7 +170,11 @@ static inline void TestPathView() llfio::path_view g(p2); llfio::path_view h(g.filename()); g = g.remove_filename(); +#if LLFIO_USING_EXPERIMENTAL_FILESYSTEM && defined(_MSC_VER) + BOOST_CHECK(0 == g.compare<>("\\mnt\\c\\Users\\ned\\Documents\\boostish\\afio\\programs\\build_posix\\testdir")); +#else BOOST_CHECK(0 == g.compare<>("\\mnt\\c\\Users\\ned\\Documents\\boostish\\afio\\programs\\build_posix\\testdir\\")); +#endif BOOST_CHECK(0 == h.compare<>("0")); // cstr llfio::path_view::c_str<> i(g, llfio::path_view::zero_terminated); |