Source-Changes-HG archive

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

[src/trunk]: src/tests/net/if Don't depend on the order of interfaces



details:   https://anonhg.NetBSD.org/src/rev/32b8ae8f7e7e
branches:  trunk
changeset: 344929:32b8ae8f7e7e
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Thu Apr 28 01:20:31 2016 +0000

description:
Don't depend on the order of interfaces

The kernel guarantees nothing about it.

diffstat:

 tests/net/if/t_ifconfig.sh |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r c9560fcd907f -r 32b8ae8f7e7e tests/net/if/t_ifconfig.sh
--- a/tests/net/if/t_ifconfig.sh        Thu Apr 28 00:37:39 2016 +0000
+++ b/tests/net/if/t_ifconfig.sh        Thu Apr 28 01:20:31 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_ifconfig.sh,v 1.8 2016/04/04 07:37:08 ozaki-r Exp $
+# $NetBSD: t_ifconfig.sh,v 1.9 2016/04/28 01:20:31 ozaki-r Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -160,11 +160,15 @@
 
        # ifconfig -l [-bdsu]
        #   -l shows only inteface names
-       atf_check -s exit:0 -o match:'lo0 shmif0' rump.ifconfig -l
+       atf_check -s exit:0 -o match:'lo0' rump.ifconfig -l
+       atf_check -s exit:0 -o match:'shmif0' rump.ifconfig -l
        atf_check -s exit:0 -o match:'shmif0' rump.ifconfig -l -b
+       atf_check -s exit:0 -o not-match:'lo0' rump.ifconfig -l -b
        atf_check -s exit:0 -o ignore rump.ifconfig -l -d
-       atf_check -s exit:0 -o match:'lo0 shmif0' rump.ifconfig -l -s
-       atf_check -s exit:0 -o match:'lo0 shmif0' rump.ifconfig -l -u
+       atf_check -s exit:0 -o match:'lo0' rump.ifconfig -l -s
+       atf_check -s exit:0 -o match:'shmif0' rump.ifconfig -l -s
+       atf_check -s exit:0 -o match:'lo0' rump.ifconfig -l -u
+       atf_check -s exit:0 -o match:'shmif0' rump.ifconfig -l -u
 
        # ifconfig -s interface
        #   -s interface exists with 0 / 1 if connected / disconnected



Home | Main Index | Thread Index | Old Index