about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2024-07-19 10:27:14 -0700
committerAlex Crichton <alex@alexcrichton.com>2024-07-19 10:27:14 -0700
commit006c884480d2d0ecf727660cbd6535b0e6479dfd (patch)
treef6a33dcaa2a75b3258bd43d58436e78f473dcfbc
parent5b0b4ff03c83f03defc3b2a4919aaf5d1ce893ea (diff)
downloadrust-006c884480d2d0ecf727660cbd6535b0e6479dfd.tar.gz
rust-006c884480d2d0ecf727660cbd6535b0e6479dfd.zip
Fix two new failing tests
The updated wasi-sdk has debuginfo by default so be sure to strip the
debuginfo by default when testing the size of new executables.
-rw-r--r--tests/run-make/wasm-panic-small/rmake.rs9
-rw-r--r--tests/run-make/wasm-stringify-ints-small/rmake.rs8
2 files changed, 15 insertions, 2 deletions
diff --git a/tests/run-make/wasm-panic-small/rmake.rs b/tests/run-make/wasm-panic-small/rmake.rs
index 8d0944ed98d..e69fbac9635 100644
--- a/tests/run-make/wasm-panic-small/rmake.rs
+++ b/tests/run-make/wasm-panic-small/rmake.rs
@@ -13,7 +13,14 @@ fn main() {
 fn test(cfg: &str) {
     eprintln!("running cfg {cfg:?}");
 
-    rustc().input("foo.rs").target("wasm32-wasip1").arg("-Clto").opt().cfg(cfg).run();
+    rustc()
+        .input("foo.rs")
+        .target("wasm32-wasip1")
+        .arg("-Clto")
+        .arg("-Cstrip=debuginfo")
+        .opt()
+        .cfg(cfg)
+        .run();
 
     let bytes = rfs::read("foo.wasm");
     println!("{}", bytes.len());
diff --git a/tests/run-make/wasm-stringify-ints-small/rmake.rs b/tests/run-make/wasm-stringify-ints-small/rmake.rs
index 93eb38b0987..c0448c59c03 100644
--- a/tests/run-make/wasm-stringify-ints-small/rmake.rs
+++ b/tests/run-make/wasm-stringify-ints-small/rmake.rs
@@ -4,7 +4,13 @@
 use run_make_support::{rfs, rustc};
 
 fn main() {
-    rustc().input("foo.rs").target("wasm32-wasip1").arg("-Clto").opt().run();
+    rustc()
+        .input("foo.rs")
+        .target("wasm32-wasip1")
+        .arg("-Clto")
+        .arg("-Cstrip=debuginfo")
+        .opt()
+        .run();
 
     let bytes = rfs::read("foo.wasm");
     println!("{}", bytes.len());