diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2024-07-19 10:27:14 -0700 | 
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2024-07-19 10:27:14 -0700 | 
| commit | 006c884480d2d0ecf727660cbd6535b0e6479dfd (patch) | |
| tree | f6a33dcaa2a75b3258bd43d58436e78f473dcfbc | |
| parent | 5b0b4ff03c83f03defc3b2a4919aaf5d1ce893ea (diff) | |
| download | rust-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.rs | 9 | ||||
| -rw-r--r-- | tests/run-make/wasm-stringify-ints-small/rmake.rs | 8 | 
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());  | 
