about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorOneirical <manchot@videotron.ca>2024-07-26 12:06:25 -0400
committerOneirical <manchot@videotron.ca>2024-07-26 15:20:01 -0400
commit1a15d901211c37aa2f4f818cbcc49bfa0c2e80b6 (patch)
treeee297268891c9368e1edf296ffa270fc7b38e146 /tests
parentd5c073eb090f34b42da85f3f768ea6847b9ba7bc (diff)
downloadrust-1a15d901211c37aa2f4f818cbcc49bfa0c2e80b6.tar.gz
rust-1a15d901211c37aa2f4f818cbcc49bfa0c2e80b6.zip
assert_stdout_contains_regex in run_make_support + variations
Diffstat (limited to 'tests')
-rw-r--r--tests/run-make/rlib-format-packed-bundled-libs-2/rmake.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/run-make/rlib-format-packed-bundled-libs-2/rmake.rs b/tests/run-make/rlib-format-packed-bundled-libs-2/rmake.rs
index 8d7afd3245e..5a1460963b6 100644
--- a/tests/run-make/rlib-format-packed-bundled-libs-2/rmake.rs
+++ b/tests/run-make/rlib-format-packed-bundled-libs-2/rmake.rs
@@ -4,18 +4,14 @@
 // in rustc flags without a compilation failure or the removal of expected symbols.
 // See https://github.com/rust-lang/rust/pull/100101
 
-//FIXME(Oneirical): try it on test-various
-
-use run_make_support::{llvm_ar, llvm_readobj, regex, rfs, rust_lib_name, rustc};
+use run_make_support::{llvm_ar, llvm_nm, rfs, rust_lib_name, rustc};
 
 fn main() {
     // Build a strangely named dependency.
     rustc().input("native_dep.rs").crate_type("staticlib").output("native_dep.ext").run();
 
     rustc().input("rust_dep.rs").crate_type("rlib").arg("-Zpacked_bundled_libs").run();
-    let symbols = llvm_readobj().symbols().input(rust_lib_name("rust_dep")).run().stdout_utf8();
-    let re = regex::Regex::new("U.*native_f1").unwrap();
-    assert!(re.is_match(&symbols));
+    llvm_nm().input(rust_lib_name("rust_dep")).run().assert_stdout_contains_regex("U.*native_f1");
     llvm_ar()
         .arg("t")
         .arg(rust_lib_name("rust_dep"))