From 036dab0a10508b9352eab4b00ccc5025f22f5d34 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 31 Mar 2014 16:58:46 +0200 Subject: [PATCH] unit-tests: Always load address of testable functions The addresses can actually change as plugins are loaded/unloaded for each test case. Fixes #551. --- src/libstrongswan/utils/test.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstrongswan/utils/test.h b/src/libstrongswan/utils/test.h index 51362a15b5..a1b2a2d9b9 100644 --- a/src/libstrongswan/utils/test.h +++ b/src/libstrongswan/utils/test.h @@ -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); \ } \ -- 2.47.2