diff options
Diffstat (limited to 'host/start-vm/tests/tap_open.c')
-rw-r--r-- | host/start-vm/tests/tap_open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/start-vm/tests/tap_open.c b/host/start-vm/tests/tap_open.c index 19bc145..6a211d6 100644 --- a/host/start-vm/tests/tap_open.c +++ b/host/start-vm/tests/tap_open.c @@ -21,7 +21,7 @@ int main(void) unshare(CLONE_NEWUSER|CLONE_NEWNET); fd = tap_open(name, 0); - if (fd == -1 && errno == EPERM) + if (fd == -1 && (errno == EPERM || errno == ENOENT)) return 77; assert(!ioctl(fd, TUNGETIFF, &ifr)); assert(!strcmp(name, ifr.ifr_name)); |