summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
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)";