* lib/gas-dg.exp (gas-dg-test): Treat $dir as a literal.

This commit is contained in:
Kazu Hirata 2006-09-08 17:08:05 +00:00
parent 6258339fa4
commit d5b2251f8c
2 changed files with 6 additions and 1 deletions

View 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.

View 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.