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.
---
Tested x86_64-linux. Pushed to trunk.
.../testsuite/27_io/filesystem/operations/copy_symlink/1.cc | 1 +
.../testsuite/27_io/filesystem/operations/copy_symlink/2.cc | 1 +
.../testsuite/27_io/filesystem/operations/copy_symlink/3.cc | 1 +
.../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>
--
2.54.0