From: xkernel Date: Wed, 13 Jul 2022 03:07:31 +0000 (+0800) Subject: ocspapitest: use TEST_true to report the exact failure X-Git-Tag: openssl-3.2.0-alpha1~2386 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=180c8d7ae56378992b90ace9626d6df6ab1d4de8;p=thirdparty%2Fopenssl.git ocspapitest: use TEST_true to report the exact failure Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/18774) --- diff --git a/test/ocspapitest.c b/test/ocspapitest.c index 7142f50831e..bc0c965d853 100644 --- a/test/ocspapitest.c +++ b/test/ocspapitest.c @@ -81,10 +81,11 @@ static OCSP_BASICRESP *make_dummy_resp(void) if (!TEST_ptr(name) || !TEST_ptr(key) || !TEST_ptr(serial) - || !X509_NAME_add_entry_by_NID(name, NID_commonName, MBSTRING_ASC, - namestr, -1, -1, 1) - || !ASN1_BIT_STRING_set(key, keybytes, sizeof(keybytes)) - || !ASN1_INTEGER_set_uint64(serial, (uint64_t)1)) + || !TEST_true(X509_NAME_add_entry_by_NID(name, NID_commonName, + MBSTRING_ASC, + namestr, -1, -1, 1)) + || !TEST_true(ASN1_BIT_STRING_set(key, keybytes, sizeof(keybytes))) + || !TEST_true(ASN1_INTEGER_set_uint64(serial, (uint64_t)1))) goto err; cid = OCSP_cert_id_new(EVP_sha256(), name, key, serial); if (!TEST_ptr(bs)