mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
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
This commit is contained in:
@@ -856,6 +856,7 @@ static struct ast_custom_function acf_curlopt = {
|
||||
.write = acf_curlopt_write,
|
||||
};
|
||||
|
||||
#ifdef TEST_FRAMEWORK
|
||||
AST_TEST_DEFINE(vulnerable_url)
|
||||
{
|
||||
const char *bad_urls [] = {
|
||||
@@ -903,6 +904,7 @@ AST_TEST_DEFINE(vulnerable_url)
|
||||
|
||||
return res;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int unload_module(void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user