aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2006-09-08 17:08:05 +0000
committerKazu Hirata <kazu@codesourcery.com>2006-09-08 17:08:05 +0000
commitd5b2251f8c5ed3147651e04632d0256669391c11 (patch)
treea6275778b772c09e92620e6c100b086625c4f8e5 /gas
parent6258339fa4b74f9f0e2212b5fed1a744643311f3 (diff)
downloadgdb-d5b2251f8c5ed3147651e04632d0256669391c11.zip
gdb-d5b2251f8c5ed3147651e04632d0256669391c11.tar.gz
gdb-d5b2251f8c5ed3147651e04632d0256669391c11.tar.bz2
* lib/gas-dg.exp (gas-dg-test): Treat $dir as a literal.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog4
-rw-r--r--gas/testsuite/lib/gas-dg.exp3
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 4533f54..93c5f29 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2006-09-08 Kazu Hirata <kazu@codesourcery.com>
+
+ * lib/gas-dg.exp (gas-dg-test): Treat $dir as a literal.
+
2006-09-08 Paul Brook <paul@codesourcery.com>
* gas/arm/arm-it.s: New test.
diff --git a/gas/testsuite/lib/gas-dg.exp b/gas/testsuite/lib/gas-dg.exp
index 92f7f31..801b9b4 100644
--- a/gas/testsuite/lib/gas-dg.exp
+++ b/gas/testsuite/lib/gas-dg.exp
@@ -36,7 +36,8 @@ proc gas-dg-test { prog do_what tool_flags } {
regsub -all "//" $dir "/" dir
regsub -all "//" $prog "/" prog
if [string match "$dir/*" $prog] {
- regsub "$dir" $prog "" prog
+ # We use (?q) to treat $dir as a literal.
+ regsub "(?q)$dir" $prog "" prog
}
# FIXME: This should be gas_start but it doesn't set comp_output.