Commit 91f20d72 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

sofia-sip/tstdef.h: use SOFIA_SIP_TEST_ABORT env variable

Abort after a test failure if SOFIA_SIP_TEST_ABORT environment variable
is set.
parent 8e946826
...@@ -188,7 +188,8 @@ enum { ...@@ -188,7 +188,8 @@ enum {
} while(0) } while(0)
#define TEST_FAILED(flags) \ #define TEST_FAILED(flags) \
((flags) & tst_abort) ? abort() : (void)0; return 1 (((flags) & tst_abort) || getenv("SOFIA_SIP_TEST_ABORT")) \
? abort() : (void)0; return 1
/** @HIDE */ /** @HIDE */
#define TEST_1_(flags, suite) do { \ #define TEST_1_(flags, suite) do { \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment