Skip to content

Commit 822c757

Browse files
Regression test for redundant JSON message output
1 parent de0644d commit 822c757

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

regression/cbmc/json1/main.c

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
int main()
2+
{
3+
unsigned x;
4+
assert(x==0);
5+
return 0;
6+
}

regression/cbmc/json1/test.desc

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
CORE
2+
main.c
3+
--json-ui --stop-on-fail
4+
activate-multi-line-match
5+
EXIT=10
6+
SIGNAL=0
7+
\[\n \{\n "program": "CBMC .*"\n \},\n \{\n "messageText": "CBMC .*",\n "messageType": "STATUS-MESSAGE"\n \},\n \{\n "messageText": "Parsing main\.c",\n "messageType": "STATUS-MESSAGE"\n \},
8+
\]\n \},\n \{\n "messageText": "VERIFICATION FAILED",\n "messageType": "STATUS-MESSAGE"\n \},\n \{\n "cProverStatus": "failure"\n \}\n\]
9+
--
10+
--
11+
The purpose of this test is to catch duplicate output of messages and
12+
output of empty messages on flushing the message stream.

0 commit comments

Comments
 (0)