Lines Matching refs:op
72 #define tt_abort_perror(op) TT_DIE(("%s: %s [%d]",(op),strerror(errno), errno))
78 #define tt_fail_perror(op) TT_FAIL(("%s: %s [%d]",(op),strerror(errno), errno))
147 /* Helper: assert that a op b, when cast to type. Format the values with
149 #define tt_assert_op_type(a,op,b,type,fmt) \
150 tt_assert_test_type(a,b,#a" "#op" "#b,type,(_val1 op _val2),fmt, \
153 #define tt_int_op(a,op,b) \
154 tt_assert_test_type(a,b,#a" "#op" "#b,long,(_val1 op _val2), \
157 #define tt_uint_op(a,op,b) \
158 tt_assert_test_type(a,b,#a" "#op" "#b,unsigned long, \
159 (_val1 op _val2),"%lu",TT_EXIT_TEST_FUNCTION)
161 #define tt_ptr_op(a,op,b) \
162 tt_assert_test_type(a,b,#a" "#op" "#b,void*, \
163 (_val1 op _val2),"%p",TT_EXIT_TEST_FUNCTION)
165 #define tt_str_op(a,op,b) \
166 tt_assert_test_type(a,b,#a" "#op" "#b,const char *, \
167 (strcmp(_val1,_val2) op 0),"<%s>",TT_EXIT_TEST_FUNCTION)
169 #define tt_want_int_op(a,op,b) \
170 tt_assert_test_type(a,b,#a" "#op" "#b,long,(_val1 op _val2),"%ld",(void)0)
172 #define tt_want_uint_op(a,op,b) \
173 tt_assert_test_type(a,b,#a" "#op" "#b,unsigned long, \
174 (_val1 op _val2),"%lu",(void)0)
176 #define tt_want_ptr_op(a,op,b) \
177 tt_assert_test_type(a,b,#a" "#op" "#b,void*, \
178 (_val1 op _val2),"%p",(void)0)
180 #define tt_want_str_op(a,op,b) \
181 tt_assert_test_type(a,b,#a" "#op" "#b,const char *, \
182 (strcmp(_val1,_val2) op 0),"<%s>",(void)0)