Skip to content

Commit fc112b3

Browse files
committed
tests: make main function default to fail status
Before this commit, calling the test executable with wrong arguments causes it to only print an error/usage message, but actual exit code was 0 (success). This is not the intended behaviour. This commit fixes it.
1 parent 3cc06f3 commit fc112b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <stdio.h>
44

55
int main(int argc, char *argv[]) {
6-
int ret = 0;
6+
int ret = 1;
77

88
printf("CEDA Test\n");
99
criterion_options.color = true;

0 commit comments

Comments
 (0)