From: Jonathan Wakely Date: Wed, 24 Jun 2026 18:02:35 +0000 (+0100) Subject: libstdc++: Disable tests for targets without symlink support X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=98780ab014cf074fff21765dfd5435151a58805d;p=thirdparty%2Fgcc.git libstdc++: Disable tests for targets without symlink support These tests for filesystem::copy_symlink should be disabled on targets that don't support symlinks (or where the target does, but our std::filesystem doesn't, such as mingw-w64). libstdc++-v3/ChangeLog: * testsuite/27_io/filesystem/operations/copy_symlink/1.cc: Add dg-require-target-fs-symlinks. * testsuite/27_io/filesystem/operations/copy_symlink/2.cc: Likewise. * testsuite/27_io/filesystem/operations/copy_symlink/3.cc: Likewise. * testsuite/27_io/filesystem/operations/copy_symlink/4.cc: Likewise. --- diff --git a/libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/1.cc b/libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/1.cc index e04b2672e6d..fbb2e66c440 100644 --- a/libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/1.cc +++ b/libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/1.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++17 } } // { dg-require-filesystem-ts "" } +// { dg-require-target-fs-symlinks "" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/2.cc b/libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/2.cc index 27caf4a1d4a..6200fcb0b57 100644 --- a/libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/2.cc +++ b/libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/2.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++17 } } // { dg-require-filesystem-ts "" } +// { dg-require-target-fs-symlinks "" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/3.cc b/libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/3.cc index 13e9dad20fc..bf4049591ae 100644 --- a/libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/3.cc +++ b/libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/3.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++17 } } // { dg-require-filesystem-ts "" } +// { dg-require-target-fs-symlinks "" } #include #include diff --git a/libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/4.cc b/libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/4.cc index 2e4f300194b..64f15f76297 100644 --- a/libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/4.cc +++ b/libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/4.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++17 } } // { dg-require-filesystem-ts "" } +// { dg-require-target-fs-symlinks "" } #include #include