From 961c3862db03e1af5387a92e4a202ce13823e189 Mon Sep 17 00:00:00 2001 From: tb Date: Fri, 9 Dec 2022 07:53:06 +0000 Subject: [PATCH] bio chain test: make two errors noisy --- regress/lib/libcrypto/bio/bio_chain.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/regress/lib/libcrypto/bio/bio_chain.c b/regress/lib/libcrypto/bio/bio_chain.c index 81f9b820409..34c7594417f 100644 --- a/regress/lib/libcrypto/bio/bio_chain.c +++ b/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; } -- 2.20.1