Hi,

This patches fixes the libphobos unittest testsuite to use `dg-runtest'
test driver rather than `dg-test', 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.

Regression tested on x86_64-linux-gnu/-m32, committed to mainline.

Regards,
Iain.

---
libphobos/ChangeLog:

        * testsuite/libphobos.unittest/unittest.exp: Use `dg-runtest' rather
        than `dg-test'.  Set `libphobos_test_name'.
---
 libphobos/testsuite/libphobos.unittest/unittest.exp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libphobos/testsuite/libphobos.unittest/unittest.exp 
b/libphobos/testsuite/libphobos.unittest/unittest.exp
index 3e2d3b84cdc..0b0e3e3ce09 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
-- 
2.43.0

Reply via email to