Skip to content

Commit

Permalink
Auto merge of #1506 - RalfJung:test-isolation, r=RalfJung
Browse files Browse the repository at this point in the history
make sure opening a file fails with isolation enabled
  • Loading branch information
bors committed Aug 10, 2020
2 parents 1edd231 + da2260d commit 50f3796
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/compile-fail/fs/isolated_file.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// ignore-windows: File handling is not implemented yet
// error-pattern: `open` not available when isolation is enabled

fn main() {
let _file = std::fs::File::open("file.txt").unwrap();
}

0 comments on commit 50f3796

Please sign in to comment.