]> git.lizzy.rs Git - rust.git/commitdiff
Update expected error messages in tests.
authorMara Bos <m-ou.se@m-ou.se>
Sat, 3 Oct 2020 10:00:29 +0000 (12:00 +0200)
committerMara Bos <m-ou.se@m-ou.se>
Sat, 3 Oct 2020 10:00:29 +0000 (12:00 +0200)
tests/compile-fail/fs/isolated_file.rs
tests/compile-fail/fs/isolated_stdin.rs

index 5b7270f18931c4427463186dac0e1f353e2df966..4c6adc8bf406222c1fe415d64dadddf44d611eb5 100644 (file)
@@ -1,5 +1,5 @@
 // ignore-windows: File handling is not implemented yet
-// error-pattern: `open` not available when isolation is enabled
+// error-pattern: open not available when isolation is enabled
 
 fn main() {
     let _file = std::fs::File::open("file.txt").unwrap();
index 6c467a2d1f141a9268b38a33b5cd2ca7d2275b40..19ce064089aaafcf6a3e07f952d372518f6e3c5f 100644 (file)
@@ -7,7 +7,7 @@
 fn main() -> std::io::Result<()> {
     let mut bytes = [0u8; 512];
     unsafe {
-        libc::read(0, bytes.as_mut_ptr() as *mut libc::c_void, 512); //~ ERROR `read` not available when isolation is enabled
+        libc::read(0, bytes.as_mut_ptr() as *mut libc::c_void, 512); //~ ERROR read not available when isolation is enabled
     }
     Ok(())
 }