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:
parent
48ef38d350
commit
d0a70d9328
8 changed files with 30 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue