]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Ensure path to libcrypto can be resolved on AIX.
authorMatthias Kraft <Matthias.Kraft@ibm.com>
Wed, 10 Dec 2025 16:02:54 +0000 (17:02 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 18 Dec 2025 16:33:05 +0000 (17:33 +0100)
On AIX, the environment of the test executable for test_includes doesn't
contain a resolvable search path to the just built libcrypto. Setup
LIBPATH to point to the build results.

Fixes #29352.

Signed-off-by: Matthias Kraft <Matthias.Kraft@ibm.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29375)

(cherry picked from commit 576efc44ae00b58d6505df1f21cfa5cd3f58da9b)

test/recipes/90-test_includes.t

index 5ff61910c570e7767ebb700b25fdb0006598365f..412bdf6115da74e24cce52bad6539a3a405ca9ec 100644 (file)
@@ -35,6 +35,9 @@ ok(run(test(["conf_include_test",  "-f", data_file("incdir.cnf")])), "test inclu
 SKIP: {
     skip "Skipping legacy test", 1
         if disabled("legacy");
+    # Ensure libcrypto can be resolved for the legacy provider on AIX.
+    local $ENV{LIBPATH} = abs_path(bldtop_dir("."))
+        if config('target') =~ m|^aix|;
     ok(run(test(["conf_include_test", "-providers", data_file("includes-prov-dir.cnf")])),
        "test directory includes with provider configs");
 }