1d6643c4f6
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
13 lines
207 B
Rust
13 lines
207 B
Rust
//@ run-pass
|
|
//@ ignore-sgx not supported
|
|
//@ ignore-emscripten
|
|
// FIXME: test hangs on emscripten
|
|
#![allow(deprecated)]
|
|
#![allow(unused_imports)]
|
|
|
|
use std::thread;
|
|
|
|
fn main() {
|
|
thread::sleep_ms(250);
|
|
}
|