aboutsummaryrefslogtreecommitdiff
path: root/libphobos
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2025-02-27 23:37:21 +0100
committerIain Buclaw <ibuclaw@gdcproject.org>2025-02-27 23:52:49 +0100
commit955de3733a9ef301e2d95009cd59a1eb4ee5273c (patch)
tree9adf0b0727b84fc7541df0c52b76258f690ea0d8 /libphobos
parente8302282cdb53ae1d347c12d7a50c4209fbab4f7 (diff)
downloadgcc-955de3733a9ef301e2d95009cd59a1eb4ee5273c.zip
gcc-955de3733a9ef301e2d95009cd59a1eb4ee5273c.tar.gz
gcc-955de3733a9ef301e2d95009cd59a1eb4ee5273c.tar.bz2
libphobos: Run unittest tests with dg-runtest.
Use `dg-runtest' test driver rather than `dg-test' to run the libphobos unittest testsuite, same as all other libphobos tests. This prevents the tests from being ran multiple times when parallelized. Set `libphobos_test_name' as well so that all tests get a unique name. libphobos/ChangeLog: * testsuite/libphobos.unittest/unittest.exp: Use `dg-runtest' rather than `dg-test'. Set `libphobos_test_name'.
Diffstat (limited to 'libphobos')
-rw-r--r--libphobos/testsuite/libphobos.unittest/unittest.exp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libphobos/testsuite/libphobos.unittest/unittest.exp b/libphobos/testsuite/libphobos.unittest/unittest.exp
index 3e2d3b8..0b0e3e3 100644
--- a/libphobos/testsuite/libphobos.unittest/unittest.exp
+++ b/libphobos/testsuite/libphobos.unittest/unittest.exp
@@ -42,8 +42,10 @@ foreach unit_test $unit_test_list {
set expected_fail [lindex $unit_test 1]
foreach test $tests {
+ set libphobos_test_name "[dg-trim-dirname $srcdir $test] $test_flags"
set shouldfail $expected_fail
- dg-test $test "" $test_flags
+ dg-runtest $test "" $test_flags
+ set libphobos_test_name ""
}
set shouldfail 0