Don't test the collected system errors when configured to not have them
authorRichard Levitte <levitte@openssl.org>
Tue, 27 Nov 2018 07:51:44 +0000 (07:51 +0000)
committerRichard Levitte <levitte@openssl.org>
Tue, 27 Nov 2018 09:01:35 +0000 (09:01 +0000)
Config options 'no-err' and 'no-autoerrinit'

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/7711)

test/recipes/02-test_errstr.t

index 745c3c0e72f50df15629a207c91d1bf50eddbe63..ef5e2fa357fee07eecd7dc8cd85fd9fed6844eb3 100644 (file)
@@ -31,6 +31,9 @@ setup('test_errstr');
 plan skip_all => 'This is unsupported for cross compiled configurations'
     if config('CROSS_COMPILE');
 
+plan skip_all => 'OpenSSL is configured "no-autoerrinit" or "no-err"'
+    if disabled('autoerrinit') || disabled('err');
+
 # These are POSIX error names, which Errno implements as functions
 # (this is documented)
 my @posix_errors = @{$Errno::EXPORT_TAGS{POSIX}};