Minor io fixlet to account for racing against last_os_error.
This commit is contained in:
@@ -752,7 +752,7 @@ mod tests {
|
|||||||
fn file_writer_bad_name() {
|
fn file_writer_bad_name() {
|
||||||
alt io::file_writer("?/?", []) {
|
alt io::file_writer("?/?", []) {
|
||||||
result::err(e) {
|
result::err(e) {
|
||||||
assert e == "error opening ?/?: No such file or directory";
|
assert str::starts_with(e, "error opening ?/?");
|
||||||
}
|
}
|
||||||
result::ok(_) { fail; }
|
result::ok(_) { fail; }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user