Handle ENOENT

Translate ENOENT to IoErrorKind::FileNotFound.
This commit is contained in:
Cadence Marseille
2013-12-08 17:12:41 -05:00
parent e7b0e0adbb
commit 33ca3e35be
4 changed files with 12 additions and 3 deletions

View File

@@ -194,7 +194,7 @@ mod tests {
do run_in_mt_newsched_task {
let mut called = false;
io_error::cond.trap(|e| {
assert_eq!(e.kind, OtherIoError);
assert_eq!(e.kind, FileNotFound);
called = true;
}).inside(|| {
let stream = UnixStream::connect(&("path/to/nowhere"));