From 6cb9c3721dfd7fab2bd63df9683b6fed67f86212 Mon Sep 17 00:00:00 2001 From: "Serge A. Zaitsev" Date: Sat, 17 Oct 2015 10:29:54 +0200 Subject: [PATCH] test exit status depends on number of failed tests --- jsmn_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsmn_test.c b/jsmn_test.c index 3968859..9c4a22e 100644 --- a/jsmn_test.c +++ b/jsmn_test.c @@ -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); }