aboutsummaryrefslogtreecommitdiff
path: root/lib/dg.exp
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2016-03-21 11:03:29 +1100
committerBen Elliston <bje@gnu.org>2016-03-21 11:03:29 +1100
commit4db4a9d4819c8b9f0763c0a93c799d37e5f71f8d (patch)
tree81b43118d34283c307626a983ef52db46c4077ca /lib/dg.exp
parent8f87bedd442920abadaa676e5ce0a42813d06358 (diff)
downloaddejagnu-4db4a9d4819c8b9f0763c0a93c799d37e5f71f8d.zip
dejagnu-4db4a9d4819c8b9f0763c0a93c799d37e5f71f8d.tar.gz
dejagnu-4db4a9d4819c8b9f0763c0a93c799d37e5f71f8d.tar.bz2
* lib/dg.exp (dg-get-options): Clean up regular expression and
remove FIXME comment about it.
Diffstat (limited to 'lib/dg.exp')
-rw-r--r--lib/dg.exp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/dg.exp b/lib/dg.exp
index dfd6a6c..8b4e3c0 100644
--- a/lib/dg.exp
+++ b/lib/dg.exp
@@ -189,9 +189,7 @@ proc dg-get-options { prog } {
set tmp [grep $prog "{\[ \t\]\+dg-\[-a-z\]\+\[ \t\]\+.*\[ \t\]\+}" line]
if {![string match "" $tmp]} {
foreach i $tmp {
- # FIXME: When to use "+" and "\+" isn't clear.
- # Seems to me it took awhile to get this to work.
- regexp "(\[0-9\]\+)\[ \t\]\+{\[ \t\]+(dg-\[-a-z\]+)\[ \t\]\+(.*)\[ \t\]+}\[^\}\]*(\n|$)" $i i line cmd args
+ regexp "(\[0-9\]+)\[ \t\]+{\[ \t\]+(dg-\[-a-z\]+)\[ \t\]+(.*)\[ \t\]+}\[^\}\]*(\n|$)" $i i line cmd args
append result " { $cmd $line $args }"
}
}