-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test to demonstrate assert bug on alpine
The user added assert in this test does not get coverage under alpine linux.
- Loading branch information
1 parent
d44bfd3
commit 4122a28
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |