test exit status depends on number of failed tests

master
Serge A. Zaitsev 9 years ago
parent bd9bd55c3a
commit 6cb9c3721d

@ -603,6 +603,6 @@ int main() {
test(test_nonstrict, "test for non-strict mode");
test(test_keyvalue, "test for keys/values");
printf("\nPASSED: %d\nFAILED: %d\n", test_passed, test_failed);
return 0;
return (test_failed > 0);
}

Loading…
Cancel
Save