Lines Matching refs:line
21 * Output a failed test first line.
27 int line, const char *type,
41 test_printf_stderr(" @ %s:%d", file, line);
58 * int test6(const char *file, int line, int n) {
60 * test_fail_message(1, file, line, "int", "value %d is not %d", n, 6);
69 static void test_fail_message(const char *prefix, const char *file, int line,
76 int line, const char *type,
80 test_fail_message_prefix(prefix, file, line, type, left, right, op);
89 int line, const char *type,
96 test_fail_message_va(prefix, file, line, type, left, right, op, fmt, ap);
109 void test_info(const char *file, int line, const char *desc, ...)
114 test_fail_message_va("INFO", file, line, NULL, NULL, NULL, NULL, desc, ap);
128 void test_error(const char *file, int line, const char *desc, ...)
133 test_fail_message_va(NULL, file, line, NULL, NULL, NULL, NULL, desc, ap);
161 int test_skip(const char *file, int line, const char *desc, ...)
166 test_fail_message_va("SKIP", file, line, NULL, NULL, NULL, NULL, desc, ap);
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)
248 test_fail_message(NULL, file, line, "ptr", s, "NULL", "==", "%p", p);
252 int test_ptr(const char *file, int line, const char *s, const void *p)
256 test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);
260 int test_true(const char *file, int line, const char *s, int b)
264 test_fail_message(NULL, file, line, "bool", s, "true", "==", "false");
268 int test_false(const char *file, int line, const char *s, int b)
272 test_fail_message(NULL, file, line, "bool", s, "false", "==", "true");
276 int test_str_eq(const char *file, int line, const char *st1, const char *st2,
282 test_fail_string_message(NULL, file, line, "string", st1, st2, "==",
290 int test_str_ne(const char *file, int line, const char *st1, const char *st2,
296 test_fail_string_message(NULL, file, line, "string", st1, st2, "!=",
304 int test_strn_eq(const char *file, int line, const char *st1, const char *st2,
310 test_fail_string_message(NULL, file, line, "string", st1, st2, "==",
318 int test_strn_ne(const char *file, int line, const char *st1, const char *st2,
324 test_fail_string_message(NULL, file, line, "string", st1, st2, "!=",
332 int test_mem_eq(const char *file, int line, const char *st1, const char *st2,
338 test_fail_memory_message(NULL, file, line, "memory", st1, st2, "==",
345 int test_mem_ne(const char *file, int line, const char *st1, const char *st2,
353 test_fail_memory_message(NULL, file, line, "memory", st1, st2, "!=",
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)
392 test_fail_bignum_mono_message(NULL, file, line, "BIGNUM", s, "1", "==", a);
396 int test_BN_odd(const char *file, int line, const char *s, const BIGNUM *a)
400 test_fail_bignum_mono_message(NULL, file, line, "BIGNUM", "ODD(", ")", s, a);
404 int test_BN_even(const char *file, int line, const char *s, const BIGNUM *a)
408 test_fail_bignum_mono_message(NULL, file, line, "BIGNUM", "EVEN(", ")", s,
413 int test_BN_eq_word(const char *file, int line, const char *bns, const char *ws,
422 test_fail_bignum_message(NULL, file, line, "BIGNUM", bns, ws, "==", a, bw);
427 int test_BN_abs_eq_word(const char *file, int line, const char *bns,
438 test_fail_bignum_message(NULL, file, line, "BIGNUM", bns, ws, "abs==",
451 int test_time_t_ ## opname(const char *file, int line, \
460 test_fail_message(NULL, file, line, "time_t", s1, s2, #op, \