summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2021-04-22 11:04:28 +1000
committerTomas Mraz <tomas@openssl.org>2021-04-23 11:25:25 +0200
commit582043dae7c283cb9f116946a7a1df0c53b5f192 (patch)
treef49cd587e8d0084b4874795ba1d8d78f3ea50f08 /test
parent9c11e8ec1f20959a174b7a8a37da67eecf65d28b (diff)
Runchecker fix for the no-autoerrinit build
In this case, there was a slight different error output format that wasn't being accounted for in the error test. Fixes #14961 Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14976)
Diffstat (limited to 'test')
-rw-r--r--test/errtest.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/errtest.c b/test/errtest.c
index a5e35d6320..1d4a708e07 100644
--- a/test/errtest.c
+++ b/test/errtest.c
@@ -74,8 +74,12 @@ static int test_print_error_format(void)
goto err;
}
-# ifndef OPENSSL_NO_ERR
+# if !defined(OPENSSL_NO_ERR)
+# if defined(OPENSSL_NO_AUTOERRINIT)
+ lib = "lib(2)";
+# else
lib = "system library";
+# endif
reason = strerror(syserr);
# else
lib = "lib(2)";