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/041bd28e27a9
branches:  trunk
changeset: 458883:041bd28e27a9
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 d030691fa070 -r 041bd28e27a9 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