Skip to content

Commit 94ca5d9

Browse files
Add regression test for multiple coverage goal instances
Covered goals is a set of unique elements
1 parent 30f26d2 commit 94ca5d9

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
int main(int argc, char **argv)
2+
{
3+
for(int i = 0; i < 4; i++)
4+
{
5+
char c;
6+
__CPROVER_input("c", c);
7+
if(c == 42)
8+
return 0;
9+
}
10+
return 1;
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CORE
2+
main.c
3+
--xml-ui --cover branch
4+
activate-multi-line-match
5+
EXIT=0
6+
SIGNAL=0
7+
</inputs>\n\s*<goal id="main\.coverage\.1"/>\n\s*<goal id="main\.coverage\.2"/>\n\s*<goal id="main\.coverage\.3"/>\n\s*<goal id="main\.coverage\.5"/>\n\s*</test>
8+
--
9+
^warning: ignoring
10+
--
11+
Expect each goal only occur once per test.

0 commit comments

Comments
 (0)