Skip to content

Commit

Permalink
Test to demonstrate assert bug on alpine
Browse files Browse the repository at this point in the history
The user added assert in this test does not get coverage under alpine
linux.
  • Loading branch information
thk123 authored and tautschnig committed Apr 15, 2018
1 parent d44bfd3 commit 4122a28
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
9 changes: 9 additions & 0 deletions regression/cbmc/simple_assert/main.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include <assert.h>

int main(int argc, char *argv[])
{
int x = 5;
assert(x == 5);

return 0;
}
13 changes: 13 additions & 0 deletions regression/cbmc/simple_assert/test.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
CORE
main.c
--cover location
^EXIT=0$
^SIGNAL=0$
^\[main\.coverage\.1\] .* function main block 1: SATISFIED$
(1 of 1|3 of 3) covered \(100\.0%\)$
--
^warning: ignoring
^CONVERSION ERROR$
^\[main\.coverage\..\] .* function main block .: FAILED$
--
On Windows/Visual Studio, "assert" does not introduce any branching.

0 comments on commit 4122a28

Please sign in to comment.