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 9f98c81ca9
commit 677d1b31ac

View File

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