diff options
author | Corey Farrell <git@cfware.com> | 2016-07-18 19:40:22 -0400 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2016-07-18 19:40:22 -0400 |
commit | cf1188a1be7c81892f480474eedf1a5639a1c1eb (patch) | |
tree | 7f291400a68fdf34d33987f2e56b0addcfaa6efc /res/res_pjsip.c | |
parent | 943bb48b59435e00131cbd56b075f73f57d10e87 (diff) |
Unit tests: Use AST_TEST_DEFINE in conditional code only.
If AST_TEST_DEFINE is not conditional to TEST_FRAMEWORK it produces dead
code. This places all existing unit tests into a conditional block if
they weren't already.
ASTERISK-26211 #close
Change-Id: I8ef83ee11cbc991b07b7a37ecb41433e8c734686
Diffstat (limited to 'res/res_pjsip.c')
-rw-r--r-- | res/res_pjsip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_pjsip.c b/res/res_pjsip.c index af2f93749..882f57876 100644 --- a/res/res_pjsip.c +++ b/res/res_pjsip.c @@ -4154,6 +4154,7 @@ long ast_sip_threadpool_queue_size(void) return ast_threadpool_queue_size(sip_threadpool); } +#ifdef TEST_FRAMEWORK AST_TEST_DEFINE(xml_sanitization_end_null) { char sanitized[8]; @@ -4204,6 +4205,7 @@ AST_TEST_DEFINE(xml_sanitization_exceeds_buffer) return AST_TEST_PASS; } +#endif /*! * \internal |