diff options
author | spark <spark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-16 17:30:20 +0000 |
---|---|---|
committer | spark <spark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-16 17:30:20 +0000 |
commit | d43d1c7f402919ea371fc71fe1551b3d8cb56521 (patch) | |
tree | d788fd42d7efa7d166ddd35978c8f79553fe4db1 /gcc/testsuite/lib/gcov.exp | |
parent | f8fd23c043e25507321039cc26eaa28d6d1f63f1 (diff) | |
download | gcc-d43d1c7f402919ea371fc71fe1551b3d8cb56521.tar.gz |
gcc/ChangeLog:
2007-08-16 Seongbae Park <seongbae.park@gmail.com>
* tree-eh.c (lower_try_finally_onedest): Reset the locus
of GOTO that's relocated to a different block.
gcc/testsuite/ChangeLog:
2007-08-16 Seongbae Park <seongbae.park@gmail.com>
* g++.dg/gcov/gcov-4.C: New test.
* lib/gcov.exp (verify-lines): Add support for
checking no-coverage lines.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127562 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/lib/gcov.exp')
-rw-r--r-- | gcc/testsuite/lib/gcov.exp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/testsuite/lib/gcov.exp b/gcc/testsuite/lib/gcov.exp index 35e86958df9..1c7484785db 100644 --- a/gcc/testsuite/lib/gcov.exp +++ b/gcc/testsuite/lib/gcov.exp @@ -42,7 +42,9 @@ proc verify-lines { testcase file } { set failed 0 set fd [open $file r] while { [gets $fd line] >= 0 } { - if [regexp "^ *(\[^:]*): *(\[0-9\]+):.*count\\((\[0-9\]+)\\)" \ + # We want to match both "-" and "#####" as count as well as numbers, + # since we want to detect lines that shouldn't be marked as covered. + if [regexp "^ *(\[^:]*): *(\[0-9\\-#]+):.*count\\((\[0-9\\-#]+)\\)" \ "$line" all is n shouldbe] { if { $is == "" } { fail "$n:no data available for this line" |