-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mark McCaskey
committed
May 22, 2019
1 parent
b7abc44
commit dc3ac15
Showing
7 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#[test] | ||
fn test_fs_sandbox_test() { | ||
assert_wasi_output!( | ||
"../../wasitests/fs_sandbox_test.wasm", | ||
"fs_sandbox_test", | ||
vec![], | ||
"../../wasitests/fs_sandbox_test.out" | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
mod _common; | ||
mod create_dir; | ||
mod file_metadata; | ||
mod fs_sandbox_test; | ||
mod hello; | ||
mod mapdir; | ||
mod quine; |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Reading the parent directory was okay? false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
fn main() { | ||
#[cfg(target = "wasi")] | ||
let result = std::fs::read_dir(".."); | ||
#[cfg(not(target = "wasi"))] | ||
let result: Result<(), String> = Err("placeholder".to_string()); | ||
println!( | ||
"Reading the parent directory was okay? {:?}", | ||
result.is_ok() | ||
); | ||
} |
Binary file not shown.