]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Runchecker fix for the no-autoerrinit build
authorPauli <pauli@openssl.org>
Thu, 22 Apr 2021 01:04:28 +0000 (11:04 +1000)
committerTomas Mraz <tomas@openssl.org>
Fri, 23 Apr 2021 09:25:25 +0000 (11:25 +0200)
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)

test/errtest.c

index a5e35d6320ccc99b6eb4972b01b4bc91d20f9c25..1d4a708e07b08d3040ff985475961f6620005001 100644 (file)
@@ -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)";