diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2015-12-04 12:57:27 +0100 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2015-12-04 12:57:27 +0100 |
commit | 5e7241c6d28290c2b30b448bbb957f28003adaf3 (patch) | |
tree | 638843457f2c1b43ca31d59c51d6c8c2b9c5d362 | |
parent | 353c3feff6dba6ad9738e7aad1f2234695a7501a (diff) |
compare_dg_tests.pl: Fix pattern matching not to be greedy.
This allows for ':' to be present in the test "name".
This is the reason why
arm-sim:gcc.dg/tree-prof/time-profiler-2.c scan-ipa-dump-times profile "Read tp_first_run: 0" 2
did not work.
Change-Id: I8160ad3ec6adfe038d22622923cd5dc6962d6860
-rwxr-xr-x | compare_dg_tests.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compare_dg_tests.pl b/compare_dg_tests.pl index 6eb4fd1..715619a 100755 --- a/compare_dg_tests.pl +++ b/compare_dg_tests.pl @@ -208,14 +208,14 @@ sub read_unstable($) my $test = $_; # Check if line is of type: target:testname - if (/^(.*):/) + if (/^(.*?):/) { foreach my $unstable_marker (@unstable_markers) { if ($unstable_marker eq $1) { # If target matches the one supplied as script # argument, add the testname to the list - $test =~ s/.*://; + $test =~ s/.*?://; push @unstable_tests, $test; } } |