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

@ -126,6 +126,7 @@ mod io_benches {
use crate::io::prelude::*;
#[bench]
#[cfg_attr(target_os = "emscripten", ignore)] // no /dev
fn bench_copy_buf_reader(b: &mut Bencher) {
let mut file_in = File::open("/dev/zero").expect("opening /dev/zero failed");
// use dyn to avoid specializations unrelated to readbuf