[committed] libstdc++: Use dg-require-filesystem-ts in link test

Message ID 20230901111722.229474-1-jwakely@redhat.com
State Accepted
Headers
Series [committed] libstdc++: Use dg-require-filesystem-ts in link test |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Jonathan Wakely Sept. 1, 2023, 11:17 a.m. UTC
  Tested x86_64-linux. Pushed to trunk.

-- >8 --

This test expects to be able to link, which fails if there are undefined
references to chdir, mkdir etc. in fs_ops.o in the libstdc++.a archive.

libstdc++-v3/ChangeLog:

	* testsuite/27_io/filesystem/path/108636.cc: Add dg-require for
	filesystem support.
---
 libstdc++-v3/testsuite/27_io/filesystem/path/108636.cc | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/libstdc++-v3/testsuite/27_io/filesystem/path/108636.cc b/libstdc++-v3/testsuite/27_io/filesystem/path/108636.cc
index d58de461090..73742df93b0 100644
--- a/libstdc++-v3/testsuite/27_io/filesystem/path/108636.cc
+++ b/libstdc++-v3/testsuite/27_io/filesystem/path/108636.cc
@@ -1,5 +1,6 @@ 
 // { dg-do link { target c++17 } }
 // { dg-options "-fkeep-inline-functions" }
+// { dg-require-filesystem-ts "" }
 
 #include <filesystem>
 int main()