Skip to content

Commit 0aa419c

Browse files
Add xml-interface test
1 parent 75a72d7 commit 0aa419c

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

regression/cbmc/xml-interface1/main.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include <assert.h>
2+
3+
void foo(int x)
4+
{
5+
for(int i = 0; i < 5; ++i)
6+
{
7+
if(x)
8+
assert(0);
9+
assert(0);
10+
}
11+
assert(0);
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
CORE
2+
--xml-interface
3+
< test.xml
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
Not unwinding loop foo\.0 iteration 3 file main\.c line 5 function foo thread 0
7+
<result property="foo\.assertion\.3" status="SUCCESS"/>
8+
<result property="foo\.assertion\.1" status="FAILURE">
9+
<goto_trace>
10+
VERIFICATION FAILED
11+
--
12+
<result property="foo\.assertion\.2" status=
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<options>
2+
<valueOption actual="main.c"/>
3+
<valueOption name="function" actual="foo"/>
4+
<valueOption name="unwind" actual="3"/>
5+
<valueOption name="property" actual="foo.assertion.1"/>
6+
<valueOption name="property" actual="foo.assertion.3"/>
7+
<flagOption name="trace" actual="on"/>
8+
<flagOption name="show-properties" actual="off"/>
9+
</options>

0 commit comments

Comments
 (0)