From f1d49ed94707f5f0799541aa8e528dce67712948 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 27 Nov 2018 07:51:44 +0000 Subject: [PATCH] Don't test the collected system errors when configured to not have them Config options 'no-err' and 'no-autoerrinit' Reviewed-by: Matt Caswell Reviewed-by: Tim Hudson Reviewed-by: Matthias St. Pierre (Merged from https://github.com/openssl/openssl/pull/7711) --- test/recipes/02-test_errstr.t | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/recipes/02-test_errstr.t b/test/recipes/02-test_errstr.t index 745c3c0e72..ef5e2fa357 100644 --- a/test/recipes/02-test_errstr.t +++ b/test/recipes/02-test_errstr.t @@ -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}}; -- 2.25.1