This test was copied from 27_io/filesystem/path/query/is_absolute.cc but should have been modified to test the path type from the TS instead of std::filesystem::path.
* testsuite/experimental/filesystem/path/query/is_absolute.cc: Fix test to use TS, not C++17. Tested x86_64-linux, committed to trunk.
commit 55f8e90ef66e884683a64e0f0819b5e20caab91c Author: Jonathan Wakely <jwak...@redhat.com> Date: Mon Dec 10 14:22:09 2018 +0000 Make test for Filesystem TS actually use the Filesystem TS This test was copied from 27_io/filesystem/path/query/is_absolute.cc but should have been modified to test the path type from the TS instead of std::filesystem::path. * testsuite/experimental/filesystem/path/query/is_absolute.cc: Fix test to use TS, not C++17. diff --git a/libstdc++-v3/testsuite/experimental/filesystem/path/query/is_absolute.cc b/libstdc++-v3/testsuite/experimental/filesystem/path/query/is_absolute.cc index 974dec4381d..0eb3e7dfc66 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/path/query/is_absolute.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/path/query/is_absolute.cc @@ -1,5 +1,5 @@ -// { dg-options "-std=gnu++17 -lstdc++fs" } -// { dg-do run { target c++17 } } +// { dg-options "-DUSE_FILESYSTEM_TS -lstdc++fs" } +// { dg-do run { target c++11 } } // { dg-require-filesystem-ts "" } // Copyright (C) 2018 Free Software Foundation, Inc. @@ -21,15 +21,15 @@ // 8.4.9 path decomposition [path.decompose] -#include <filesystem> +#include <experimental/filesystem> #include <testsuite_hooks.h> -using std::filesystem::path; +using std::experimental::filesystem::path; void test01() { - #ifdef _GLIBCXX_FILESYSTEM_IS_WINDOWS +#ifdef _GLIBCXX_FILESYSTEM_IS_WINDOWS const bool is_posix = false; #else const bool is_posix = true;