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:
parent
2a38b4556e
commit
036dab0a10
|
@ -82,7 +82,7 @@ static ret (*TEST_##ns##name)(__VA_ARGS__);
|
|||
*/
|
||||
#define TEST_FUNCTION(ns, name, ...) \
|
||||
({ \
|
||||
if (!TEST_##ns##name && testable_functions) \
|
||||
if (testable_functions) \
|
||||
{ \
|
||||
TEST_##ns##name = testable_functions->get(testable_functions, #ns "/" #name); \
|
||||
} \
|
||||
|
|
Loading…
Reference in New Issue