From: Wilco Dijkstra Date: Mon, 18 Feb 2019 14:09:17 +0000 (+0000) Subject: Fix libstdc++ filesystem tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb8c4926c5bcec83ec7d4198e46bc9efe9a26f17;p=gcc.git Fix libstdc++ filesystem tests Some recently added libstdc++ filesystem tests are missing a dg-require-filesystem-ts. Committed as obvious. libstdc++/testsuite/ * 27_io/filesystem/operations/all.cc: Add dg-require-filesystem-ts. * 27_io/filesystem/operations/resize_file.cc: Likewise. * 27_io/filesystem/path/generation/normal2.cc: Likewise. From-SVN: r268989 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 3691aca1310..f2279b9f2ae 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2019-02-18 Wilco Dijkstra + + * 27_io/filesystem/operations/all.cc: Add dg-require-filesystem-ts. + * 27_io/filesystem/operations/resize_file.cc: Likewise. + * 27_io/filesystem/path/generation/normal2.cc: Likewise. + 2019-02-14 Jonathan Wakely * doc/xml/manual/status_cxx2020.xml: Update P0887R1 status. diff --git a/libstdc++-v3/testsuite/27_io/filesystem/operations/all.cc b/libstdc++-v3/testsuite/27_io/filesystem/operations/all.cc index c9f34f4a7af..026aa57bc39 100644 --- a/libstdc++-v3/testsuite/27_io/filesystem/operations/all.cc +++ b/libstdc++-v3/testsuite/27_io/filesystem/operations/all.cc @@ -1,5 +1,6 @@ -// { dg-options "-std=gnu++17" } -// { dg-do run { target c++17 } } +// { dg-options "-std=gnu++17 -fno-inline" } +// { dg-do link { target c++17 } } +// { dg-require-filesystem-ts "" } // Copyright (C) 2019 Free Software Foundation, Inc. // @@ -18,9 +19,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17 -fno-inline" } -// { dg-do link { target c++17 } } - // C++17 30.10.15 Filesystem operation functions [fs.op.funcs] #include diff --git a/libstdc++-v3/testsuite/27_io/filesystem/operations/resize_file.cc b/libstdc++-v3/testsuite/27_io/filesystem/operations/resize_file.cc index 953c4e1c664..deeeab3078c 100644 --- a/libstdc++-v3/testsuite/27_io/filesystem/operations/resize_file.cc +++ b/libstdc++-v3/testsuite/27_io/filesystem/operations/resize_file.cc @@ -17,6 +17,7 @@ // { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } +// { dg-require-filesystem-ts "" } // C++17 30.10.15.33 Resize file [fs.op.resize_file] diff --git a/libstdc++-v3/testsuite/27_io/filesystem/path/generation/normal2.cc b/libstdc++-v3/testsuite/27_io/filesystem/path/generation/normal2.cc index 8c5bb954e81..576ac286d50 100644 --- a/libstdc++-v3/testsuite/27_io/filesystem/path/generation/normal2.cc +++ b/libstdc++-v3/testsuite/27_io/filesystem/path/generation/normal2.cc @@ -17,6 +17,7 @@ // { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } +// { dg-require-filesystem-ts "" } #undef _GLIBCXX_USE_CXX11_ABI #define _GLIBCXX_USE_CXX11_ABI 0