Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lavabit/magma.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLadar Levison <ladar@lavabit.com>2018-05-08 23:32:19 +0300
committerLadar Levison <ladar@lavabit.com>2018-05-08 23:32:19 +0300
commit4c02af22c6804cd0499ec7f631e0fdd40313fcfa (patch)
tree278f7904aad247102c20350f5231e12a5e644b05 /check
parente39cbedd9cdb0b3f47047f8c060425828100cca2 (diff)
Made the START_TEST macro override comment easier to understand.
Diffstat (limited to 'check')
-rw-r--r--check/magma/magma_check.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/check/magma/magma_check.h b/check/magma/magma_check.h
index 6833d3b6..5c0b6820 100644
--- a/check/magma/magma_check.h
+++ b/check/magma/magma_check.h
@@ -16,9 +16,9 @@
#include <check.h>
#include <valgrind/valgrind.h>
-// Normally the START_TEST macro creates a static testcase function. Unfortunately we can't
-// find those symbols using dlsym() so we can't dynamically select individual test cases at
-// runtime. This redefines the macro without using the static keyword to workaround this problem.
+// Normally the START_TEST macro creates static testcase functions. Unfortunately dlsym() can't find static
+// symbols. We override the default macro with the variant below, which doesn't use the static keyword. This
+// allows us to use the dlsym() function to find and execute individual test case functions.
#undef START_TEST
#define START_TEST(__testname) void __testname (int _i CK_ATTRIBUTE_UNUSED) { tcase_fn_start (""# __testname, __FILE__, __LINE__);