Skip to content

Commit ec1ff07

Browse files
committed
test: better return of successful test
1 parent 52cf49a commit ec1ff07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/main_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ int test_of(char *s, enum test t) {
118118
default:
119119
printf("%s>>> INFO : INVALID TEST REQUESTED %s\n", r, f);
120120
}
121-
return 1;
121+
return succ == nb_test ? 1 : 0;
122122
}
123123

124124
int main(int argc, char **argv) {

0 commit comments

Comments
 (0)