X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/26f3388d27d1be9312d0244890db564c1b22ba0c..af0b220756571bc8faf57a0c7b7389dd86a60376:/src/testhelp.h diff --git a/src/testhelp.h b/src/testhelp.h index d699f2ae..45033404 100644 --- a/src/testhelp.h +++ b/src/testhelp.h @@ -6,7 +6,9 @@ * test_cond("Check if 5 > 10", 5 > 10) * test_report() * - * Copyright (c) 2010, Salvatore Sanfilippo + * ---------------------------------------------------------------------------- + * + * Copyright (c) 2010-2012, Salvatore Sanfilippo * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -48,6 +50,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);