Lines Matching refs:test_name
219 #define _TEST(test_name) __TEST_IMPL(test_name, -1) argument
221 #define _TEST_SIGNAL(test_name, signal) __TEST_IMPL(test_name, signal) argument
223 #define __TEST_IMPL(test_name, _signal) \ argument
224 static void test_name(struct __test_metadata *_metadata); \
225 static struct __test_metadata _##test_name##_object = \
226 { name: "global." #test_name, \
227 fn: &test_name, termsig: _signal }; \
228 static void __attribute__((constructor)) _register_##test_name(void) \
230 __register_test(&_##test_name##_object); \
232 static void test_name( \
263 #define _TEST_F(fixture_name, test_name) \ argument
264 __TEST_F_IMPL(fixture_name, test_name, -1)
266 #define _TEST_F_SIGNAL(fixture_name, test_name, signal) \ argument
267 __TEST_F_IMPL(fixture_name, test_name, signal)
269 #define __TEST_F_IMPL(fixture_name, test_name, signal) \ argument
270 static void fixture_name##_##test_name( \
273 static inline void wrapper_##fixture_name##_##test_name( \
283 fixture_name##_##test_name(_metadata, &self); \
287 _##fixture_name##_##test_name##_object = { \
288 name: #fixture_name "." #test_name, \
289 fn: &wrapper_##fixture_name##_##test_name, \
293 _register_##fixture_name##_##test_name(void) \
295 __register_test(&_##fixture_name##_##test_name##_object); \
297 static void fixture_name##_##test_name( \