Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/net/if tests: check if ifconfig (ioctl) works after a ...



details:   https://anonhg.NetBSD.org/src/rev/ce819bbd494c
branches:  trunk
changeset: 844374:ce819bbd494c
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Thu Aug 15 04:21:33 2019 +0000

description:
tests: check if ifconfig (ioctl) works after a failure of ifconfig destroy

This is a test for PR kern/54434.

diffstat:

 tests/net/if/t_ifconfig.sh |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r bf232d268f40 -r ce819bbd494c tests/net/if/t_ifconfig.sh
--- a/tests/net/if/t_ifconfig.sh        Thu Aug 15 04:20:59 2019 +0000
+++ b/tests/net/if/t_ifconfig.sh        Thu Aug 15 04:21:33 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_ifconfig.sh,v 1.20 2019/07/04 02:46:40 ozaki-r Exp $
+# $NetBSD: t_ifconfig.sh,v 1.21 2019/08/15 04:21:33 ozaki-r Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -69,6 +69,11 @@
        atf_check -s exit:0 rump.ifconfig shmif0 up
        atf_check -s exit:0 rump.ifconfig shmif0 destroy
 
+       # Check if ifconfig (ioctl) works after a failure of ifconfig destroy
+       atf_check -s exit:0 -o ignore rump.ifconfig lo0
+       atf_check -s not-exit:0 -e ignore rump.ifconfig lo0 destroy
+       atf_check -s exit:0 -o ignore rump.ifconfig lo0
+
        unset RUMP_SERVER
 }
 



Home | Main Index | Thread Index | Old Index