1
Fork 0

Fix testing of the standard library with Emscripten

This does need EMCC_CFLAGS="-s MAXIMUM_MEMORY=2GB" avoid several OOMs.
This commit is contained in:
bjorn3 2025-01-23 19:01:47 +00:00
parent 48ef38d350
commit d0a70d9328
8 changed files with 30 additions and 3 deletions

View file

@ -1,7 +1,7 @@
#![feature(anonymous_pipe)]
fn main() {
#[cfg(all(not(miri), any(unix, windows)))]
#[cfg(all(not(miri), any(unix, windows), not(target_os = "emscripten")))]
{
use std::io::{Read, pipe};
use std::{env, process};

View file

@ -5,7 +5,8 @@ use std::{env, fs, process, str};
mod common;
#[test]
#[cfg_attr(any(miri, target_os = "wasi"), ignore)] // Process spawning not supported by Miri and wasi
// Process spawning not supported by Miri, Emscripten and wasi
#[cfg_attr(any(miri, target_os = "emscripten", target_os = "wasi"), ignore)]
fn issue_15149() {
// If we're the parent, copy our own binary to a new directory.
let my_path = env::current_exe().unwrap();