]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
80-test_cmp_http.t: Skip IPv6 address test if IPv6 is unavailable
authorTomas Mraz <tomas@openssl.org>
Wed, 23 Aug 2023 21:02:46 +0000 (23:02 +0200)
committerHugo Landau <hlandau@openssl.org>
Fri, 25 Aug 2023 11:05:34 +0000 (12:05 +0100)
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/21825)

test/recipes/80-test_cmp_http.t

index 2695c0f28f35b5900cab2a837b7965efec7882f7..1b0ec8a659a695ecbf947f4dc21e5b7271d7e9b0 100644 (file)
@@ -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];
     }