Fix the filenames used in some IO tests
These tests are relying on not being able to open certain files, but did not work correctly when run as root.
This commit is contained in:
parent
0b4f0a4caa
commit
8207506bbc
|
@ -37,9 +37,9 @@ fn file_reader_not_exist() {
|
|||
// FIXME (726)
|
||||
#[ignore(cfg(target_os = "macos"))]
|
||||
fn file_buf_writer_bad_name() {
|
||||
alt io::file_buf_writer("/?", []) {
|
||||
alt io::file_buf_writer("?/?", []) {
|
||||
result::err(e) {
|
||||
assert e == "error opening /?";
|
||||
assert e == "error opening ?/?";
|
||||
}
|
||||
result::ok(_) { fail; }
|
||||
}
|
||||
|
@ -49,9 +49,9 @@ fn file_buf_writer_bad_name() {
|
|||
// FIXME (726)
|
||||
#[ignore(cfg(target_os = "macos"))]
|
||||
fn buffered_file_buf_writer_bad_name() {
|
||||
alt io::buffered_file_buf_writer("/?") {
|
||||
alt io::buffered_file_buf_writer("?/?") {
|
||||
result::err(e) {
|
||||
assert e == "error opening /?";
|
||||
assert e == "error opening ?/?";
|
||||
}
|
||||
result::ok(_) { fail; }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue