Skip shlibload tests if no-atexit is configured
authorNeil Horman <nhorman@openssl.org>
Thu, 8 Feb 2024 14:17:44 +0000 (09:17 -0500)
committerTomas Mraz <tomas@openssl.org>
Wed, 14 Feb 2024 17:05:44 +0000 (18:05 +0100)
the shared library load tests fail if no-atexit is configured.  The
entire test suite relies on atexit handling to indicate an at exit
handler has run, by producing a file that the test recipe then reads.
With no-atexit that never happens, and the test fails

If no-atexit is specified, skip all the tests

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

test/recipes/90-test_shlibload.t

index 8f691dee38e8238c2844a41a5c9fa7ffaaa12847..af6bae20af341483eefd2bf9c1d4981e7f9c601c 100644 (file)
@@ -23,6 +23,7 @@ plan skip_all => "Test is disabled on AIX" if config('target') =~ m|^aix|;
 plan skip_all => "Test is disabled on NonStop" if config('target') =~ m|^nonstop|;
 plan skip_all => "Test only supported in a dso build" if disabled("dso");
 plan skip_all => "Test is disabled in an address sanitizer build" unless disabled("asan");
+plan skip_all => "Test is disabled if no-atexit is specified" if disabled("atexit");
 
 plan tests => 10;