From 1709b6023fb4add984f3c924c3cca37e5238b983 Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 9 Dec 2022 07:53:06 +0000 Subject: bio chain test: make two errors noisy --- src/regress/lib/libcrypto/bio/bio_chain.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/regress/lib/libcrypto/bio/bio_chain.c b/src/regress/lib/libcrypto/bio/bio_chain.c index 81f9b82040..34c7594417 100644 --- a/src/regress/lib/libcrypto/bio/bio_chain.c +++ b/src/regress/lib/libcrypto/bio/bio_chain.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bio_chain.c,v 1.9 2022/12/09 07:47:59 tb Exp $ */ +/* $OpenBSD: bio_chain.c,v 1.10 2022/12/09 07:53:06 tb Exp $ */ /* * Copyright (c) 2022 Theo Buehler * @@ -201,8 +201,12 @@ walk_forward(BIO *start, BIO *end, size_t expected_len, size_t i, size_t j, int ret = 0; if (start == NULL || end == NULL) { - if (expected_len != 0) + if (expected_len != 0) { + fprintf(stderr, "%s case (%zu, %zu) %s: empty chain " + "with expected length %zu > 0\n", + fn, i, j, description, expected_len); goto err; + } goto done; } @@ -244,8 +248,12 @@ walk_backward(BIO *start, BIO *end, size_t expected_len, size_t i, size_t j, int ret = 0; if (start == NULL || end == NULL) { - if (expected_len != 0) + if (expected_len != 0) { + fprintf(stderr, "%s case (%zu, %zu) %s: empty chain " + "with expected length %zu > 0\n", + fn, i, j, description, expected_len); goto err; + } goto done; } -- cgit v1.2.3-55-g6feb