about summary refs log tree commit diff
path: root/tests/ui/intrinsics
diff options
context:
space:
mode:
authorHood Chatham <roberthoodchatham@gmail.com>2024-10-14 21:16:27 +0200
committerHood Chatham <roberthoodchatham@gmail.com>2024-10-15 14:25:55 +0200
commit1d6643c4f69ba31f91a385c51f46d615bd2b0d66 (patch)
tree4900a95f4d22d6d3e650143e745402b6cb6d6ad0 /tests/ui/intrinsics
parent17a19e684cdf3ca088af8b4da6a6209d128913f4 (diff)
downloadrust-1d6643c4f69ba31f91a385c51f46d615bd2b0d66.tar.gz
rust-1d6643c4f69ba31f91a385c51f46d615bd2b0d66.zip
Fix most ui tests on emscripten target
To fix the linker errors, we need to set the output extension to `.js` instead
of `.wasm`. Setting the output to a `.wasm` file puts Emscripten into standalone
mode which is effectively a distinct target. We need to set the runner to be
`node` as well.

This fixes most of the ui tests. I fixed a few more tests with simple problems:
- `intrinsics/intrinsic-alignment.rs` and `structs-enums/rec-align-u64.rs` --
Two `#[cfg]` macros match for Emscripten so we got a duplicate definition of
`mod m`.
- `issues/issue-12699.rs` -- Seems to hang so I disabled it
- `process/process-sigpipe.rs` -- Not expected to work on Emscripten so I
disabled it
Diffstat (limited to 'tests/ui/intrinsics')
-rw-r--r--tests/ui/intrinsics/intrinsic-alignment.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/ui/intrinsics/intrinsic-alignment.rs b/tests/ui/intrinsics/intrinsic-alignment.rs
index 138273aadd2..4cb05f6a8df 100644
--- a/tests/ui/intrinsics/intrinsic-alignment.rs
+++ b/tests/ui/intrinsics/intrinsic-alignment.rs
@@ -13,7 +13,6 @@ mod rusti {
 #[cfg(any(
     target_os = "android",
     target_os = "dragonfly",
-    target_os = "emscripten",
     target_os = "freebsd",
     target_os = "fuchsia",
     target_os = "hurd",