Skip to content

Commit d132ba6

Browse files
committed
Add a test for HandleOrInvalid preserving the error.
1 parent ec96440 commit d132ba6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/ffi.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ fn test_file_not_found() {
4646
}
4747
.try_into();
4848
assert!(handle.is_err());
49+
assert_eq!(
50+
std::io::Error::last_os_error().kind(),
51+
std::io::ErrorKind::NotFound
52+
);
4953
}
5054

5155
#[cfg(all(rustc_attrs, unix))]

0 commit comments

Comments
 (0)