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