Lines Matching refs:b
89 #define tt_want_(b, msg, fail) \ argument
91 if (!(b)) { \
101 #define tt_want_msg(b, msg) \ argument
102 tt_want_(b, msg, );
105 #define tt_assert_msg(b, msg) \ argument
106 tt_want_(b, msg, TT_EXIT_TEST_FUNCTION);
109 #define tt_want(b) tt_want_msg( (b), "want("#b")") argument
111 #define tt_assert(b) tt_assert_msg((b), "assert("#b")") argument
113 #define tt_assert_test_fmt_type(a,b,str_test,type,test,printf_type,printf_fmt, \ argument
117 type val2_ = (type)(b); \
143 #define tt_assert_test_type(a,b,str_test,type,test,fmt,die_on_fail) \ argument
144 tt_assert_test_fmt_type(a,b,str_test,type,test,type,fmt, \
147 #define tt_assert_test_type_opt(a,b,str_test,type,test,fmt,die_on_fail) \ argument
148 tt_assert_test_fmt_type(a,b,str_test,type,test,type,fmt, \
153 #define tt_assert_op_type(a,op,b,type,fmt) \ argument
154 tt_assert_test_type(a,b,#a" "#op" "#b,type,(val1_ op val2_),fmt, \
157 #define tt_int_op(a,op,b) \ argument
158 tt_assert_test_type(a,b,#a" "#op" "#b,long,(val1_ op val2_), \
162 #define tt_fd_op(a,op,b) do { \ argument
164 int _b = (int)(b); \
165 tt_assert_test_type(_a,_b,#a" "#op" "#b,long,(val1_ op val2_), \
169 #define tt_uint_op(a,op,b) \ argument
170 tt_assert_test_type(a,b,#a" "#op" "#b,unsigned long, \
173 #define tt_ptr_op(a,op,b) \ argument
174 tt_assert_test_type(a,b,#a" "#op" "#b,const void*, \
178 #define tt_nstr_op(n,a,op,b) \ argument
179 tt_assert_test_type_opt(a,b,#a" "#op" "#b,const char *, \
183 #define tt_str_op(a,op,b) \ argument
184 tt_assert_test_type_opt(a,b,#a" "#op" "#b,const char *, \
198 #define tt_want_int_op(a,op,b) \ argument
199 tt_assert_test_type(a,b,#a" "#op" "#b,long,(val1_ op val2_),"%ld",(void)0)
201 #define tt_want_uint_op(a,op,b) \ argument
202 tt_assert_test_type(a,b,#a" "#op" "#b,unsigned long, \
205 #define tt_want_ptr_op(a,op,b) \ argument
206 tt_assert_test_type(a,b,#a" "#op" "#b,const void*, \
209 #define tt_want_str_op(a,op,b) \ argument
210 tt_assert_test_type(a,b,#a" "#op" "#b,const char *, \