https://gcc.gnu.org/g:cee008380b85bd1cac9c8a5b64266388471ec026

commit r15-2251-gcee008380b85bd1cac9c8a5b64266388471ec026
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Mon Jul 22 14:07:32 2024 +0100

    libstdc++: Stop copying all data files into test directory
    
    This removes the TODO in libstdc++_init, so that we don't copy all *.tst
    and *.txt files from testsuite/data into every test's working directory.
    Instead, only the necessary files declared with dg-additional-files are
    copied.
    
    libstdc++-v3/ChangeLog:
    
            * testsuite/lib/libstdc++.exp (libstdc++_init): Do not copy all
            data files into test directory.

Diff:
---
 libstdc++-v3/testsuite/lib/libstdc++.exp | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp 
b/libstdc++-v3/testsuite/lib/libstdc++.exp
index ef511949c7bc..4bf88e72d051 100644
--- a/libstdc++-v3/testsuite/lib/libstdc++.exp
+++ b/libstdc++-v3/testsuite/lib/libstdc++.exp
@@ -158,11 +158,6 @@ proc libstdc++_init { testfile } {
     global dg-do-what-default
     set dg-do-what-default run
 
-    # Copy all required data files.
-    # TODO: Use dg-additional-files in individual tests instead of doing this.
-    v3-copy-files [glob -nocomplain "$srcdir/data/*.tst"]
-    v3-copy-files [glob -nocomplain "$srcdir/data/*.txt"]
-
     set ld_library_path_tmp ""
 
     # Locate libgcc.a so we don't need to account for different values of

Reply via email to