* Re: [patch] Robustify gas-dg.exp.
[not found] <20060908005708.GA31239@ozlabs.au.ibm.com>
@ 2006-09-09 11:51 ` Ben Elliston
0 siblings, 0 replies; 3+ messages in thread
From: Ben Elliston @ 2006-09-09 11:51 UTC (permalink / raw)
To: Kazu Hirata; +Cc: binutils
[-- Attachment #1: Type: text/plain, Size: 140 bytes --]
> 2006-09-07 Kazu Hirata <kazu@codesourcery.com>
>
> * lib/gas-dg.exp (gas-dg-test): Treat $dir as a literal.
OK. Thanks,
Ben
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch] Robustify gas-dg.exp.
2006-09-07 17:17 Kazu Hirata
@ 2006-09-08 2:24 ` Alan Modra
0 siblings, 0 replies; 3+ messages in thread
From: Alan Modra @ 2006-09-08 2:24 UTC (permalink / raw)
To: Kazu Hirata; +Cc: binutils
On Thu, Sep 07, 2006 at 10:17:42AM -0700, Kazu Hirata wrote:
> * lib/gas-dg.exp (gas-dg-test): Treat $dir as a literal.
OK, thanks.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
^ permalink raw reply [flat|nested] 3+ messages in thread
* [patch] Robustify gas-dg.exp.
@ 2006-09-07 17:17 Kazu Hirata
2006-09-08 2:24 ` Alan Modra
0 siblings, 1 reply; 3+ messages in thread
From: Kazu Hirata @ 2006-09-07 17:17 UTC (permalink / raw)
To: binutils
Hi,
Attached is a patch to robustify gas-dg.exp.
While I was running dejagnu tests, I noticed that the line with regsub
in the patch below causes an error. It turned out that the name of my
build directory contained '+', which caused $dir to contain '+', which
in turn confused regsub.
The patch fixes this problem by treating $dir as a literal. This way,
characters like '+' and '?' won't be treated as special characters.
Tested by running dejagnu. OK to apply?
Kazu Hirata
2006-09-07 Kazu Hirata <kazu@codesourcery.com>
* lib/gas-dg.exp (gas-dg-test): Treat $dir as a literal.
Index: gas/testsuite/lib/gas-dg.exp
===================================================================
RCS file: /cvs/src/src/gas/testsuite/lib/gas-dg.exp,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 gas-dg.exp
--- gas/testsuite/lib/gas-dg.exp 3 May 1999 07:28:53 -0000 1.1.1.1
+++ gas/testsuite/lib/gas-dg.exp 7 Sep 2006 16:45:22 -0000
@@ -36,7 +36,8 @@
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-09-09 11:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20060908005708.GA31239@ozlabs.au.ibm.com>
2006-09-09 11:51 ` [patch] Robustify gas-dg.exp Ben Elliston
2006-09-07 17:17 Kazu Hirata
2006-09-08 2:24 ` Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).