Commit ddd6f407 by Martin Liska Committed by Martin Liska

Fix how we match for count(n*) in gcov tests.

2018-11-19  Martin Liska  <mliska@suse.cz>

	* g++.dg/gcov/pr84548.C: Remove remove-gcda.
	* g++.dg/gcov/ternary.C: Likewise.
	* lib/gcov.exp: Support pattern of following form:
	count(1*).

From-SVN: r266270
parent d86b600d
2018-11-19 Martin Liska <mliska@suse.cz>
* g++.dg/gcov/pr84548.C: Remove remove-gcda.
* g++.dg/gcov/ternary.C: Likewise.
* lib/gcov.exp: Support pattern of following form:
count(1*).
2018-11-19 Eric Botcazou <ebotcazou@adacore.com>
* gcc.target/visium/overflow8.c: Remove -fno-if-conversion and
......
......@@ -16,4 +16,4 @@ int main()
return 0;
}
// { dg-final { run-gcov remove-gcda pr84548.C } }
// { dg-final { run-gcov pr84548.C } }
......@@ -9,4 +9,4 @@ int main()
return a;
}
// { dg-final { run-gcov remove-gcda ternary.C } }
// { dg-final { run-gcov ternary.C } }
......@@ -59,7 +59,7 @@ proc verify-lines { testname testcase file } {
while { [gets $fd line] >= 0 } {
# 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\\-#=\\.kMGTPEZY]+)\\)(.*)" \
if [regexp "^ *(\[^:]*): *(\[0-9\\-#]+):.*count\\((\[0-9\\-#=\\.kMGTPEZY\*]+)\\)(.*)" \
"$line" all is n shouldbe rest] {
if [regexp "^ *{(.*)}" $rest all xfailed] {
switch [dg-process-target $xfailed] {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment