about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-04-25 00:53:59 +0200
committerGitHub <noreply@github.com>2025-04-25 00:53:59 +0200
commit4c0d38b93ed22e17b18948ed64008afd495ac5b0 (patch)
tree9184a5c5ec22416ca781ef344705a75b0135319b
parent7ba71d38d89641d42480ab512c1df0ccd8b43819 (diff)
parentfdf2c47f83fd4eead8b4d39a8a712bf7d5e68fc6 (diff)
downloadrust-4c0d38b93ed22e17b18948ed64008afd495ac5b0.tar.gz
rust-4c0d38b93ed22e17b18948ed64008afd495ac5b0.zip
Rollup merge of #140187 - amy-kwan:amy-kwan/update_runmake_tests_AIX, r=jieyouxu
[AIX] Handle AIX dynamic library extensions within c-link-to-rust-dylib run-make test

Dynamic libraries on AIX have the ".a" extension. The c-link-to-rust-dylib run-make test checks for the extension explicitly, so the extension for AIX is also added to accommodate the test case on AIX.
-rw-r--r--tests/run-make/c-link-to-rust-dylib/rmake.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/run-make/c-link-to-rust-dylib/rmake.rs b/tests/run-make/c-link-to-rust-dylib/rmake.rs
index ab9aa445402..3a48af8a366 100644
--- a/tests/run-make/c-link-to-rust-dylib/rmake.rs
+++ b/tests/run-make/c-link-to-rust-dylib/rmake.rs
@@ -23,7 +23,11 @@ fn main() {
         if path.is_file()
             && path.extension().is_some_and(|ext| ext == expected_extension)
             && path.file_name().and_then(|name| name.to_str()).is_some_and(|name| {
-                name.ends_with(".so") || name.ends_with(".dll") || name.ends_with(".dylib")
+                if cfg!(target_os = "aix") {
+                    name.ends_with(".a")
+                } else {
+                    name.ends_with(".so") || name.ends_with(".dll") || name.ends_with(".dylib")
+                }
             })
         {
             rfs::remove_file(path);