[gcc r16-9209] libstdc++: Disable tests for targets without symlink support
Jonathan Wakely
redi@gcc.gnu.org
Wed Jul 1 13:52:15 GMT 2026
https://gcc.gnu.org/g:9a9ae74da58a45b5790b9f62e28ce204a6cb381c
commit r16-9209-g9a9ae74da58a45b5790b9f62e28ce204a6cb381c
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Jun 24 19:02:35 2026 +0100
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.
(cherry picked from commit 98780ab014cf074fff21765dfd5435151a58805d)
Diff:
---
libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/1.cc | 1 +
libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/2.cc | 1 +
libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/3.cc | 1 +
libstdc++-v3/testsuite/27_io/filesystem/operations/copy_symlink/4.cc | 1 +
4 files changed, 4 insertions(+)
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 e04b2672e6dd..fbb2e66c440d 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 <filesystem>
#include <testsuite_hooks.h>
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 27caf4a1d4a0..6200fcb0b577 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 <filesystem>
#include <testsuite_hooks.h>
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 13e9dad20fcb..bf4049591ae1 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 <filesystem>
#include <testsuite_hooks.h>
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 2e4f300194ba..64f15f762974 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 <filesystem>
#include <testsuite_hooks.h>
More information about the Libstdc++-cvs
mailing list