1
Fork 0

Minor io fixlet to account for racing against last_os_error.

This commit is contained in:
Graydon Hoare 2012-03-20 11:58:56 -07:00
parent 1a20f8e7cc
commit 716dc29ffc

View file

@ -752,7 +752,7 @@ mod tests {
fn file_writer_bad_name() {
alt io::file_writer("?/?", []) {
result::err(e) {
assert e == "error opening ?/?: No such file or directory";
assert str::starts_with(e, "error opening ?/?");
}
result::ok(_) { fail; }
}