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:
Brian Anderson 2011-10-31 12:50:45 -07:00
parent 0b4f0a4caa
commit 8207506bbc
1 changed files with 4 additions and 4 deletions

View File

@ -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; }
}