summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2022-12-09 07:53:06 +0000
committertb <>2022-12-09 07:53:06 +0000
commit1709b6023fb4add984f3c924c3cca37e5238b983 (patch)
treeeba360fb89b777a589be060bf25ef5435812ccd2
parent134447f29ef741b5bfa3f913e73676fa2ea47af9 (diff)
downloadopenbsd-1709b6023fb4add984f3c924c3cca37e5238b983.tar.gz
openbsd-1709b6023fb4add984f3c924c3cca37e5238b983.tar.bz2
openbsd-1709b6023fb4add984f3c924c3cca37e5238b983.zip
bio chain test: make two errors noisy
-rw-r--r--src/regress/lib/libcrypto/bio/bio_chain.c14
1 files 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 @@
1/* $OpenBSD: bio_chain.c,v 1.9 2022/12/09 07:47:59 tb Exp $ */ 1/* $OpenBSD: bio_chain.c,v 1.10 2022/12/09 07:53:06 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> 3 * Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
4 * 4 *
@@ -201,8 +201,12 @@ walk_forward(BIO *start, BIO *end, size_t expected_len, size_t i, size_t j,
201 int ret = 0; 201 int ret = 0;
202 202
203 if (start == NULL || end == NULL) { 203 if (start == NULL || end == NULL) {
204 if (expected_len != 0) 204 if (expected_len != 0) {
205 fprintf(stderr, "%s case (%zu, %zu) %s: empty chain "
206 "with expected length %zu > 0\n",
207 fn, i, j, description, expected_len);
205 goto err; 208 goto err;
209 }
206 goto done; 210 goto done;
207 } 211 }
208 212
@@ -244,8 +248,12 @@ walk_backward(BIO *start, BIO *end, size_t expected_len, size_t i, size_t j,
244 int ret = 0; 248 int ret = 0;
245 249
246 if (start == NULL || end == NULL) { 250 if (start == NULL || end == NULL) {
247 if (expected_len != 0) 251 if (expected_len != 0) {
252 fprintf(stderr, "%s case (%zu, %zu) %s: empty chain "
253 "with expected length %zu > 0\n",
254 fn, i, j, description, expected_len);
248 goto err; 255 goto err;
256 }
249 goto done; 257 goto done;
250 } 258 }
251 259