diff options
Diffstat (limited to 'gcc/testsuite/lib/objc-torture.exp')
-rw-r--r-- | gcc/testsuite/lib/objc-torture.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/lib/objc-torture.exp b/gcc/testsuite/lib/objc-torture.exp index 09d0c7761ff..4d52a3de6f1 100644 --- a/gcc/testsuite/lib/objc-torture.exp +++ b/gcc/testsuite/lib/objc-torture.exp @@ -88,7 +88,7 @@ proc objc-torture-compile { src option } { set output "$tmpdir/[file tail [file rootname $src]].o" - regsub "^$srcdir/?" $src "" testcase + regsub "(?q)$srcdir/" $src "" testcase # If we couldn't rip $srcdir out of `src' then just do the best we can. # The point is to reduce the unnecessary noise in the logs. Don't strip # out too much because different testcases with the same name can confuse @@ -146,7 +146,7 @@ proc objc-torture-execute { src args } { set executable $tmpdir/[file tail [file rootname $src].x] - regsub "^$srcdir/?" $src "" testcase + regsub "(?q)$srcdir/" $src "" testcase # If we couldn't rip $srcdir out of `src' then just do the best we can. # The point is to reduce the unnecessary noise in the logs. Don't strip # out too much because different testcases with the same name can confuse |