Lines Matching refs:test_name
161 #define TEST(test_name) __TEST_IMPL(test_name, -1) argument
180 #define TEST_SIGNAL(test_name, signal) __TEST_IMPL(test_name, signal) argument
182 #define __TEST_IMPL(test_name, _signal) \ argument
183 static void test_name(struct __test_metadata *_metadata); \
184 static inline void wrapper_##test_name( \
190 test_name(_metadata); \
193 static struct __test_metadata _##test_name##_object = \
194 { .name = #test_name, \
195 .fn = &wrapper_##test_name, \
199 static void __attribute__((constructor)) _register_##test_name(void) \
201 __register_test(&_##test_name##_object); \
203 static void test_name( \
367 #define TEST_F(fixture_name, test_name) \ argument
368 __TEST_F_IMPL(fixture_name, test_name, -1, TEST_TIMEOUT_DEFAULT)
370 #define TEST_F_SIGNAL(fixture_name, test_name, signal) \ argument
371 __TEST_F_IMPL(fixture_name, test_name, signal, TEST_TIMEOUT_DEFAULT)
373 #define TEST_F_TIMEOUT(fixture_name, test_name, timeout) \ argument
374 __TEST_F_IMPL(fixture_name, test_name, -1, timeout)
376 #define __TEST_F_IMPL(fixture_name, test_name, signal, tmout) \ argument
377 static void fixture_name##_##test_name( \
381 static inline void wrapper_##fixture_name##_##test_name( \
394 fixture_name##_##test_name(_metadata, &self, variant->data); \
401 _##fixture_name##_##test_name##_object = { \
402 .name = #test_name, \
403 .fn = &wrapper_##fixture_name##_##test_name, \
409 _register_##fixture_name##_##test_name(void) \
411 __register_test(&_##fixture_name##_##test_name##_object); \
413 static void fixture_name##_##test_name( \