Lines Matching refs:file
26 void test_fail_message_prefix(const char *prefix, const char *file, in test_fail_message_prefix() argument
40 if (file != NULL) { in test_fail_message_prefix()
41 test_printf_stderr(" @ %s:%d", file, line); in test_fail_message_prefix()
69 static void test_fail_message(const char *prefix, const char *file, int line,
75 static void test_fail_message_va(const char *prefix, const char *file, in test_fail_message_va() argument
80 test_fail_message_prefix(prefix, file, line, type, left, right, op); in test_fail_message_va()
88 static void test_fail_message(const char *prefix, const char *file, in test_fail_message() argument
96 test_fail_message_va(prefix, file, line, type, left, right, op, fmt, ap); in test_fail_message()
109 void test_info(const char *file, int line, const char *desc, ...) in test_info() argument
114 test_fail_message_va("INFO", file, line, NULL, NULL, NULL, NULL, desc, ap); in test_info()
128 void test_error(const char *file, int line, const char *desc, ...) in test_error() argument
133 test_fail_message_va(NULL, file, line, NULL, NULL, NULL, NULL, desc, ap); in test_error()
161 int test_skip(const char *file, int line, const char *desc, ...) in test_skip() argument
166 test_fail_message_va("SKIP", file, line, NULL, NULL, NULL, NULL, desc, ap); in test_skip()
212 int test_ ## name ## _ ## opname(const char *file, int line, \
218 test_fail_message(NULL, file, line, #type, s1, s2, #op, \
244 int test_ptr_null(const char *file, int line, const char *s, const void *p) in test_ptr_null() argument
248 test_fail_message(NULL, file, line, "ptr", s, "NULL", "==", "%p", p); in test_ptr_null()
252 int test_ptr(const char *file, int line, const char *s, const void *p) in test_ptr() argument
256 test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p); in test_ptr()
260 int test_true(const char *file, int line, const char *s, int b) in test_true() argument
264 test_fail_message(NULL, file, line, "bool", s, "true", "==", "false"); in test_true()
268 int test_false(const char *file, int line, const char *s, int b) in test_false() argument
272 test_fail_message(NULL, file, line, "bool", s, "false", "==", "true"); in test_false()
276 int test_str_eq(const char *file, int line, const char *st1, const char *st2, in test_str_eq() argument
282 test_fail_string_message(NULL, file, line, "string", st1, st2, "==", in test_str_eq()
290 int test_str_ne(const char *file, int line, const char *st1, const char *st2, in test_str_ne() argument
296 test_fail_string_message(NULL, file, line, "string", st1, st2, "!=", in test_str_ne()
304 int test_strn_eq(const char *file, int line, const char *st1, const char *st2, in test_strn_eq() argument
310 test_fail_string_message(NULL, file, line, "string", st1, st2, "==", in test_strn_eq()
318 int test_strn_ne(const char *file, int line, const char *st1, const char *st2, in test_strn_ne() argument
324 test_fail_string_message(NULL, file, line, "string", st1, st2, "!=", in test_strn_ne()
332 int test_mem_eq(const char *file, int line, const char *st1, const char *st2, in test_mem_eq() argument
338 test_fail_memory_message(NULL, file, line, "memory", st1, st2, "==", in test_mem_eq()
345 int test_mem_ne(const char *file, int line, const char *st1, const char *st2, in test_mem_ne() argument
353 test_fail_memory_message(NULL, file, line, "memory", st1, st2, "!=", in test_mem_ne()
361 int test_BN_ ## opname(const char *file, int line, \
367 test_fail_bignum_message(NULL, file, line, "BIGNUM", s1, s2, \
371 int test_BN_ ## opname ## _zero(const char *file, int line, \
376 test_fail_bignum_mono_message(NULL, file, line, "BIGNUM", \
388 int test_BN_eq_one(const char *file, int line, const char *s, const BIGNUM *a) in test_BN_eq_one() argument
392 test_fail_bignum_mono_message(NULL, file, line, "BIGNUM", s, "1", "==", a); in test_BN_eq_one()
396 int test_BN_odd(const char *file, int line, const char *s, const BIGNUM *a) in test_BN_odd() argument
400 test_fail_bignum_mono_message(NULL, file, line, "BIGNUM", "ODD(", ")", s, a); in test_BN_odd()
404 int test_BN_even(const char *file, int line, const char *s, const BIGNUM *a) in test_BN_even() argument
408 test_fail_bignum_mono_message(NULL, file, line, "BIGNUM", "EVEN(", ")", s, in test_BN_even()
413 int test_BN_eq_word(const char *file, int line, const char *bns, const char *ws, in test_BN_eq_word() argument
422 test_fail_bignum_message(NULL, file, line, "BIGNUM", bns, ws, "==", a, bw); in test_BN_eq_word()
427 int test_BN_abs_eq_word(const char *file, int line, const char *bns, in test_BN_abs_eq_word() argument
438 test_fail_bignum_message(NULL, file, line, "BIGNUM", bns, ws, "abs==", in test_BN_abs_eq_word()
451 int test_time_t_ ## opname(const char *file, int line, \
460 test_fail_message(NULL, file, line, "time_t", s1, s2, #op, \