unit-tests: Always load address of testable functions
The addresses can actually change as plugins are loaded/unloaded for each test case. Fixes #551.
This commit is contained in:
@@ -82,7 +82,7 @@ static ret (*TEST_##ns##name)(__VA_ARGS__);
|
|||||||
*/
|
*/
|
||||||
#define TEST_FUNCTION(ns, name, ...) \
|
#define TEST_FUNCTION(ns, name, ...) \
|
||||||
({ \
|
({ \
|
||||||
if (!TEST_##ns##name && testable_functions) \
|
if (testable_functions) \
|
||||||
{ \
|
{ \
|
||||||
TEST_##ns##name = testable_functions->get(testable_functions, #ns "/" #name); \
|
TEST_##ns##name = testable_functions->get(testable_functions, #ns "/" #name); \
|
||||||
} \
|
} \
|
||||||
|
|||||||
Reference in New Issue
Block a user