summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-11-02 16:52:10 +0100
committerantirez <antirez@gmail.com>2011-11-02 16:52:10 +0100
commita54806ac6af77940070a90a44b603bec46cfe599 (patch)
tree70f5bc282204d84d962ac4a970165b6a369c1a19
parentdd5fbedf7bb9ac02d14aa9ecaeafb47e48b9a587 (diff)
downloadredis-a54806ac6af77940070a90a44b603bec46cfe599.tar.gz
testhelp.h now exits with retcode 1 on failed tests.
-rw-r--r--src/testhelp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testhelp.h b/src/testhelp.h
index d699f2ae4..807a86e94 100644
--- a/src/testhelp.h
+++ b/src/testhelp.h
@@ -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);