test exit status depends on number of failed tests

This commit is contained in:
Serge A. Zaitsev
2015-10-17 10:29:54 +02:00
parent bd9bd55c3a
commit 6cb9c3721d

View File

@@ -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);
}