summaryrefslogtreecommitdiff
path: root/testsuite/testsuite.h
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2014-10-09 14:29:04 -0300
committerLucas De Marchi <lucas.demarchi@intel.com>2014-10-09 14:29:04 -0300
commit4328982058bd6840518ff552a0405bf8f9d73909 (patch)
tree3f5f8d90cc3b138ec0d91264c9d187dfb3e4b1c2 /testsuite/testsuite.h
parentc5798fea9376958f62c4a7b253a9d8136c241040 (diff)
downloadkmod-4328982058bd6840518ff552a0405bf8f9d73909.tar.gz
kmod-4328982058bd6840518ff552a0405bf8f9d73909.tar.bz2
kmod-4328982058bd6840518ff552a0405bf8f9d73909.zip
testsuite: remove now unused array of tests
Remove the arrays and let each test with a guaranteed unique name.
Diffstat (limited to 'testsuite/testsuite.h')
-rw-r--r--testsuite/testsuite.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/testsuite.h b/testsuite/testsuite.h
index f9a6e91..8688ed0 100644
--- a/testsuite/testsuite.h
+++ b/testsuite/testsuite.h
@@ -132,14 +132,14 @@ int test_run(const struct test *t);
/* Test definitions */
#define DEFINE_TEST(_name, ...) \
- static const struct test s##_name \
+ static const struct test s##_name##UNIQ \
__attribute__((used, section("kmod_tests"), aligned(8))) = { \
.name = #_name, \
.func = _name, \
## __VA_ARGS__ \
};
-#define TESTSUITE_MAIN(_tests) \
+#define TESTSUITE_MAIN() \
extern struct test __start_kmod_tests[] __attribute__((weak, visibility("hidden"))); \
extern struct test __stop_kmod_tests[] __attribute__((weak, visibility("hidden"))); \
int main(int argc, char *argv[]) \