Message ID | f64fc385-2d07-9848-089f-75bf27a2e45a@gmail.com |
---|---|
State | New |
Headers | show |
Series | [committed] Avoid overly-greedy match in dejagnu regexp. | expand |
diff --git a/gcc/testsuite/lib/multiline.exp b/gcc/testsuite/lib/multiline.exp index 0e151b6d222..86387f8209b 100644 --- a/gcc/testsuite/lib/multiline.exp +++ b/gcc/testsuite/lib/multiline.exp @@ -331,7 +331,7 @@ proc _build_multiline_regex { multiline index } { # Support arbitrary followup text on each non-empty line, # to deal with comments containing containing DejaGnu # directives. - append rexp ".*" + append rexp "\[^\\n\\r\]*" } } append rexp "\n"