Skip to content

Commit 761aef8

Browse files
committed
Ignore some more errors in device test
1 parent 9f05697 commit 761aef8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/socket.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ fn device() {
287287
let interface = CStr::from_bytes_with_nul(interface.as_bytes()).unwrap();
288288
if let Err(err) = socket.bind_device(Some(interface)) {
289289
// Network interface is not available try another.
290-
if let Some(libc::ENODEV) = err.raw_os_error() {
290+
if matches!(err.raw_os_error(), Some(libc::ENODEV) | Some(libc::EPERM)) {
291291
continue;
292292
} else {
293293
panic!("unexpected error binding device: {}", err);

0 commit comments

Comments
 (0)