From bce11250f5585273ffce9e3d1baaaf751140a8c4 Mon Sep 17 00:00:00 2001 From: ozaki-r Date: Thu, 15 Aug 2019 04:21:33 +0000 Subject: [PATCH] tests: check if ifconfig (ioctl) works after a failure of ifconfig destroy This is a test for PR kern/54434. --- tests/net/if/t_ifconfig.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/net/if/t_ifconfig.sh b/tests/net/if/t_ifconfig.sh index 4a88c283d8fd..d68d2dae70cf 100644 --- a/tests/net/if/t_ifconfig.sh +++ b/tests/net/if/t_ifconfig.sh @@ -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 }