aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/scripts/create_testsuite_files
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/scripts/create_testsuite_files')
-rwxr-xr-xlibstdc++-v3/scripts/create_testsuite_files17
1 files changed, 12 insertions, 5 deletions
diff --git a/libstdc++-v3/scripts/create_testsuite_files b/libstdc++-v3/scripts/create_testsuite_files
index 50f2e13f856..582f8f5b0ac 100755
--- a/libstdc++-v3/scripts/create_testsuite_files
+++ b/libstdc++-v3/scripts/create_testsuite_files
@@ -47,15 +47,22 @@ else
grep -v wchar_t $tmp.1 > $tmp.2
fi
+# If the library is not configured to support threads, don't run those tests.
+if test -f "$outdir/testsuite_thread"; then
+ mv $tmp.2 $tmp.3
+else
+ grep -v thread $tmp.2 > $tmp.3
+fi
+
# Now filter out classes of tests. These classes are run using special rules.
-grep _xin $tmp.2 > $tests_file_inter
-grep -v _xin $tmp.2 > $tmp.3
+grep _xin $tmp.3 > $tests_file_inter
+grep -v _xin $tmp.3 > $tmp.4
-grep performance $tmp.3 > $tests_file_perf
-grep -v performance $tmp.3 > $tmp.4
+grep performance $tmp.4 > $tests_file_perf
+grep -v performance $tmp.4 > $tmp.5
# ...more filters go here.
-cp $tmp.4 $tests_file_normal
+cp $tmp.5 $tests_file_normal
rm $tmp*
exit 0