test//bio_dgram_test.c: Skip test when BIO_bind() fails
authorRichard Levitte <levitte@openssl.org>
Tue, 7 Mar 2023 14:21:16 +0000 (15:21 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 7 Mar 2023 14:24:54 +0000 (15:24 +0100)
commit12c4e67675e691d7556a526aa062effff05a6532
treea9bc1d1c027fcd49b146eb3159f9af838e7a603a
parenta8681703d48d062c2fc1736179218063275f8e33
test//bio_dgram_test.c: Skip test when BIO_bind() fails

This test isn't supposed to test BIO_bind() itself, so we can be a bit
sloppy and assume that it fails because the attempted binding is not
supported on the platform where this is run.  For example, BIO_bind()
fails when it's given an IPv6 address and the platform where this is
run doesn't support that address family.

In a case like this, it's sensible enough to simply skip the test when
BIO_bind() fails.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20449)
test/bio_dgram_test.c