Lines Matching refs:NULL

30     test_printf_stderr("%s: ", prefix != NULL ? prefix : "ERROR");  in test_fail_message_prefix()
33 if (op != NULL) { in test_fail_message_prefix()
34 if (left != NULL && right != NULL) in test_fail_message_prefix()
39 if (file != NULL) { in test_fail_message_prefix()
80 if (fmt != NULL) { in test_fail_message_va()
104 test_fail_message_va("INFO", NULL, -1, NULL, NULL, NULL, NULL, desc, ap); in test_info_c90()
113 test_fail_message_va("INFO", file, line, NULL, NULL, NULL, NULL, desc, ap); in test_info()
122 test_fail_message_va(NULL, NULL, -1, NULL, NULL, NULL, NULL, desc, ap); in test_error_c90()
132 test_fail_message_va(NULL, file, line, NULL, NULL, NULL, NULL, desc, ap); in test_error()
148 if (fmt != NULL) { in test_note()
165 test_fail_message_va("SKIP", file, line, NULL, NULL, NULL, NULL, desc, ap); in test_skip()
175 test_fail_message_va("SKIP", NULL, -1, NULL, NULL, NULL, NULL, desc, ap); in test_skip_c90()
184 ERR_print_errors_cb(openssl_error_cb, NULL); in test_openssl_errors()
217 test_fail_message(NULL, file, line, #type, s1, s2, #op, \
247 if (p == NULL) in test_ptr_null()
249 test_fail_message(NULL, file, line, "ptr", s, "NULL", "==", "%p", p); in test_ptr_null()
255 if (p != NULL) in test_ptr()
257 test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p); in test_ptr()
265 test_fail_message(NULL, file, line, "bool", s, "true", "==", "false"); in test_true()
273 test_fail_message(NULL, file, line, "bool", s, "false", "==", "true"); in test_false()
280 if (s1 == NULL && s2 == NULL) in test_str_eq()
282 if (s1 == NULL || s2 == NULL || strcmp(s1, s2) != 0) { in test_str_eq()
283 test_fail_string_message(NULL, file, line, "string", st1, st2, "==", in test_str_eq()
284 s1, s1 == NULL ? 0 : strlen(s1), in test_str_eq()
285 s2, s2 == NULL ? 0 : strlen(s2)); in test_str_eq()
294 if ((s1 == NULL) ^ (s2 == NULL)) in test_str_ne()
296 if (s1 == NULL || strcmp(s1, s2) == 0) { in test_str_ne()
297 test_fail_string_message(NULL, file, line, "string", st1, st2, "!=", in test_str_ne()
298 s1, s1 == NULL ? 0 : strlen(s1), in test_str_ne()
299 s2, s2 == NULL ? 0 : strlen(s2)); in test_str_ne()
308 if (s1 == NULL && s2 == NULL) in test_strn_eq()
310 if (n1 != n2 || s1 == NULL || s2 == NULL || strncmp(s1, s2, n1) != 0) { in test_strn_eq()
311 test_fail_string_message(NULL, file, line, "string", st1, st2, "==", in test_strn_eq()
312 s1, s1 == NULL ? 0 : OPENSSL_strnlen(s1, n1), in test_strn_eq()
313 s2, s2 == NULL ? 0 : OPENSSL_strnlen(s2, n2)); in test_strn_eq()
322 if ((s1 == NULL) ^ (s2 == NULL)) in test_strn_ne()
324 if (n1 != n2 || s1 == NULL || strncmp(s1, s2, n1) == 0) { in test_strn_ne()
325 test_fail_string_message(NULL, file, line, "string", st1, st2, "!=", in test_strn_ne()
326 s1, s1 == NULL ? 0 : OPENSSL_strnlen(s1, n1), in test_strn_ne()
327 s2, s2 == NULL ? 0 : OPENSSL_strnlen(s2, n2)); in test_strn_ne()
336 if (s1 == NULL && s2 == NULL) in test_mem_eq()
338 if (n1 != n2 || s1 == NULL || s2 == NULL || memcmp(s1, s2, n1) != 0) { in test_mem_eq()
339 test_fail_memory_message(NULL, file, line, "memory", st1, st2, "==", in test_mem_eq()
349 if ((s1 == NULL) ^ (s2 == NULL)) in test_mem_ne()
353 if (s1 == NULL || memcmp(s1, s2, n1) == 0) { in test_mem_ne()
354 test_fail_memory_message(NULL, file, line, "memory", st1, st2, "!=", in test_mem_ne()
368 test_fail_bignum_message(NULL, file, line, "BIGNUM", s1, s2, \
375 if (a != NULL &&(zero_cond)) \
377 test_fail_bignum_mono_message(NULL, file, line, "BIGNUM", \
391 if (a != NULL && BN_is_one(a)) in test_BN_eq_one()
393 test_fail_bignum_mono_message(NULL, file, line, "BIGNUM", s, "1", "==", a); in test_BN_eq_one()
399 if (a != NULL && BN_is_odd(a)) in test_BN_odd()
401 test_fail_bignum_mono_message(NULL, file, line, "BIGNUM", "ODD(", ")", s, a); in test_BN_odd()
407 if (a != NULL && !BN_is_odd(a)) in test_BN_even()
409 test_fail_bignum_mono_message(NULL, file, line, "BIGNUM", "EVEN(", ")", s, in test_BN_even()
419 if (a != NULL && BN_is_word(a, w)) in test_BN_eq_word()
421 if ((bw = BN_new()) != NULL) in test_BN_eq_word()
423 test_fail_bignum_message(NULL, file, line, "BIGNUM", bns, ws, "==", a, bw); in test_BN_eq_word()
433 if (a != NULL && BN_abs_is_word(a, w)) in test_BN_abs_eq_word()
435 if ((aa = BN_dup(a)) != NULL) in test_BN_abs_eq_word()
437 if ((bw = BN_new()) != NULL) in test_BN_abs_eq_word()
439 test_fail_bignum_message(NULL, file, line, "BIGNUM", bns, ws, "abs==", in test_BN_abs_eq_word()
448 return t == NULL ? "<null>" : (const char *)ASN1_STRING_get0_data(t); in print_time()
456 ASN1_TIME *at1 = ASN1_TIME_set(NULL, t1); \
457 ASN1_TIME *at2 = ASN1_TIME_set(NULL, t2); \
458 int r = at1 != NULL && at2 != NULL \
461 test_fail_message(NULL, file, line, "time_t", s1, s2, #op, \