expose vfs in emscripten and impl read syscall, feature flag

This commit is contained in:
Mackenzie Clark
2019-03-12 10:48:33 -07:00
parent b9c3a49f3c
commit cc3f04efd7
12 changed files with 104 additions and 8 deletions

View File

@ -176,6 +176,8 @@ mod test_unary_literal;
mod test_utf;
mod test_varargs;
mod test_varargs_multi;
#[cfg(feature = "vfs")]
mod test_vfs;
mod test_vprintf;
mod test_vsnprintf;
mod test_wprintf;

View File

@ -0,0 +1,9 @@
#[test]
fn test_vfs() {
assert_emscripten_output!(
"../../emtests/test_vfs.wasm",
"test_vfs",
vec![],
"../../emtests/test_vfs.out"
);
}