]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Disable tests for targets without symlink support
authorJonathan Wakely <jwakely@redhat.com>
Wed, 24 Jun 2026 18:02:35 +0000 (19:02 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 24 Jun 2026 20:53:53 +0000 (21:53 +0100)
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.

libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/1.cc
libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/2.cc
libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/3.cc
libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/4.cc

index e04b2672e6dd7275c78e986cff48680bb0bd9683..fbb2e66c440de194cc85fcf6d769266e18d095c7 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do run { target c++17 } }
 // { dg-require-filesystem-ts "" }
+// { dg-require-target-fs-symlinks "" }
 
 #include <filesystem>
 #include <testsuite_hooks.h>
index 27caf4a1d4a05bbcbcd6713e8f25e5238b6140ae..6200fcb0b5772277810a88212917594479ece986 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do run { target c++17 } }
 // { dg-require-filesystem-ts "" }
+// { dg-require-target-fs-symlinks "" }
 
 #include <filesystem>
 #include <testsuite_hooks.h>
index 13e9dad20fcb520a17b7eb72dd5e43b7c18d4aa1..bf4049591ae158c86f016beece04571ac14198ce 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do run { target c++17 } }
 // { dg-require-filesystem-ts "" }
+// { dg-require-target-fs-symlinks "" }
 
 #include <filesystem>
 #include <testsuite_hooks.h>
index 2e4f300194ba2d608969766c8b55d2d964813049..64f15f7629744adbcc1d18821a32c33134e4b63c 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do run { target c++17 } }
 // { dg-require-filesystem-ts "" }
+// { dg-require-target-fs-symlinks "" }
 
 #include <filesystem>
 #include <testsuite_hooks.h>