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

This is a test for PR kern/54434.
This commit is contained in:
ozaki-r 2019-08-15 04:21:33 +00:00
parent 426920b6c8
commit bce11250f5

View File

@ -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 @@ ifconfig_create_destroy_body()
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
}