From: Tomas Mraz Date: Wed, 23 Aug 2023 21:02:46 +0000 (+0200) Subject: 80-test_cmp_http.t: Skip IPv6 address test if IPv6 is unavailable X-Git-Tag: openssl-3.2.0-alpha1~142 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=56562c472aa0cdc27670c04dbb7008b099029641;p=thirdparty%2Fopenssl.git 80-test_cmp_http.t: Skip IPv6 address test if IPv6 is unavailable Reviewed-by: Hugo Landau Reviewed-by: David von Oheimb (Merged from https://github.com/openssl/openssl/pull/21825) --- diff --git a/test/recipes/80-test_cmp_http.t b/test/recipes/80-test_cmp_http.t index 2695c0f28f3..1b0ec8a659a 100644 --- a/test/recipes/80-test_cmp_http.t +++ b/test/recipes/80-test_cmp_http.t @@ -277,6 +277,7 @@ sub load_tests { my $title = $fields[$description]; next LOOP if (!defined($expected_result) || ($expected_result ne 0 && $expected_result ne 1)); + next LOOP if ($line =~ m/-server,\[.*:.*\]/ && !have_IPv6()); @fields = grep {$_ ne 'BLANK'} @fields[$description + 1 .. @fields - 1]; push @result, [$title, \@fields, $expected_result]; }