* lib/gas-dg.exp (gas-dg-test): Treat $dir as a literal.
authorKazu Hirata <kazu@codesourcery.com>
Fri, 8 Sep 2006 17:08:05 +0000 (17:08 +0000)
committerKazu Hirata <kazu@codesourcery.com>
Fri, 8 Sep 2006 17:08:05 +0000 (17:08 +0000)
gas/testsuite/ChangeLog
gas/testsuite/lib/gas-dg.exp

index 4533f54408841931229897d5ffb5f10ad5138b6b..93c5f2936ebb194f211948614f0012215d7fcb05 100644 (file)
@@ -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.
index 92f7f3136c1783e243e5970a87ef666c9d33c3f2..801b9b4e93c140116010d0e3abf867b76fed3cc3 100644 (file)
@@ -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.