Lines Matching refs:tc
37 #include <atf-c/tc.h>
41 #define ATF_TC_NAME(tc) \
42 (atfu_ ## tc ## _tc)
44 #define ATF_TC_PACK_NAME(tc) \
45 (atfu_ ## tc ## _tc_pack)
47 #define ATF_TC_WITHOUT_HEAD(tc) \
48 static void atfu_ ## tc ## _body(const atf_tc_t *); \
49 static atf_tc_t atfu_ ## tc ## _tc; \
50 static atf_tc_pack_t atfu_ ## tc ## _tc_pack = { \
51 .m_ident = #tc, \
53 .m_body = atfu_ ## tc ## _body, \
57 #define ATF_TC(tc) \
58 static void atfu_ ## tc ## _head(atf_tc_t *); \
59 static void atfu_ ## tc ## _body(const atf_tc_t *); \
60 static atf_tc_t atfu_ ## tc ## _tc; \
61 static atf_tc_pack_t atfu_ ## tc ## _tc_pack = { \
62 .m_ident = #tc, \
63 .m_head = atfu_ ## tc ## _head, \
64 .m_body = atfu_ ## tc ## _body, \
68 #define ATF_TC_WITH_CLEANUP(tc) \
69 static void atfu_ ## tc ## _head(atf_tc_t *); \
70 static void atfu_ ## tc ## _body(const atf_tc_t *); \
71 static void atfu_ ## tc ## _cleanup(const atf_tc_t *); \
72 static atf_tc_t atfu_ ## tc ## _tc; \
73 static atf_tc_pack_t atfu_ ## tc ## _tc_pack = { \
74 .m_ident = #tc, \
75 .m_head = atfu_ ## tc ## _head, \
76 .m_body = atfu_ ## tc ## _body, \
77 .m_cleanup = atfu_ ## tc ## _cleanup, \
80 #define ATF_TC_HEAD(tc, tcptr) \
83 atfu_ ## tc ## _head(atf_tc_t *tcptr ATF_DEFS_ATTRIBUTE_UNUSED)
85 #define ATF_TC_HEAD_NAME(tc) \
86 (atfu_ ## tc ## _head)
88 #define ATF_TC_BODY(tc, tcptr) \
91 atfu_ ## tc ## _body(const atf_tc_t *tcptr ATF_DEFS_ATTRIBUTE_UNUSED)
93 #define ATF_TC_BODY_NAME(tc) \
94 (atfu_ ## tc ## _body)
96 #define ATF_TC_CLEANUP(tc, tcptr) \
99 atfu_ ## tc ## _cleanup(const atf_tc_t *tcptr ATF_DEFS_ATTRIBUTE_UNUSED)
101 #define ATF_TC_CLEANUP_NAME(tc) \
102 (atfu_ ## tc ## _cleanup)
117 #define ATF_TP_ADD_TC(tp, tc) \
123 atfu_err = atf_tc_init_pack(&atfu_ ## tc ## _tc, \
124 &atfu_ ## tc ## _tc_pack, \
129 atfu_err = atf_tp_add_tc(tp, &atfu_ ## tc ## _tc); \