Commit 85955e25ff for openssl.org

commit 85955e25ffc7c64d1e8e54bae77fb4065fd71ac8
Author: Richard Levitte <levitte@openssl.foundation>
Date:   Thu Aug 27 16:14:18 2026 +0200

    cmake config test: skip under ASan, MSan and UBSan

    The dummy programs built by cmake are not sanitizer-instrumented, but
    they run through util/wrap.pl which inherits the sanitizer runtime
    environment from the outer test run.  ASan refuses to attach to a
    non-instrumented executable, MSan produce spurious link errors against
    the sanitized OpenSSL libraries, and a static UBSan build leaves the
    consumer link without the UBSan runtime (__ubsan_handle_* symbols).

    Skip this test under both sanitizers.

    Assisted-by: Pi:moonshotai/kimi-k3
    Signed-off-by: Richard Levitte <levitte@openssl.foundation>
    Reviewed-by: Andrew Dinh <andrewd@openssl.org>
    Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
    Merge-date: Sat Nov 14 17:36:40 2026
    Merged-from: https://github.com/openssl/openssl/pull/32442

diff --git a/test/recipes/94-test_cmake_config.t b/test/recipes/94-test_cmake_config.t
index f81e530971..efb2f10b5d 100644
--- a/test/recipes/94-test_cmake_config.t
+++ b/test/recipes/94-test_cmake_config.t
@@ -20,6 +20,19 @@ setup("test_cmake_config");
 plan skip_all => "cmake is not available"
     unless IPC::Cmd::can_run("cmake");

+# The cmake-built dummies aren't sanitizer-instrumented, but wrap.pl
+# inherits the sanitizer runtime environment from the outer test run.
+# ASan refuses to attach to a non-instrumented executable, MSan
+# produces spurious link errors against the sanitized libraries, and
+# a static UBSan build leaves the consumer link without the UBSan
+# runtime (__ubsan_handle_* symbols).
+plan skip_all => "not run under address sanitizer"
+    unless disabled("asan");
+plan skip_all => "not run under memory sanitizer"
+    unless disabled("msan");
+plan skip_all => "not run under undefined behavior sanitizer"
+    unless disabled("ubsan");
+
 # We require cmake 3.22 or later
 my $cmake_version_output = `cmake --version`;
 my ($cmake_major, $cmake_minor) =