testhelp.h now exits with retcode 1 on failed tests.

This commit is contained in:
antirez 2011-11-02 16:52:10 +01:00
parent dd5fbedf7b
commit a54806ac6a

View File

@ -48,6 +48,7 @@ int __test_num = 0;
__test_num-__failed_tests, __failed_tests); \ __test_num-__failed_tests, __failed_tests); \
if (__failed_tests) { \ if (__failed_tests) { \
printf("=== WARNING === We have failed tests here...\n"); \ printf("=== WARNING === We have failed tests here...\n"); \
exit(1); \
} \ } \
} while(0); } while(0);