Page MenuHomeFreeBSD

D28917.diff
No OneTemporary

D28917.diff

diff --git a/tests/sys/net/if_bridge_test.sh b/tests/sys/net/if_bridge_test.sh
--- a/tests/sys/net/if_bridge_test.sh
+++ b/tests/sys/net/if_bridge_test.sh
@@ -117,6 +117,15 @@
then
atf_fail "STP failed to detect bridging loop"
fi
+
+ # We must also have at least some forwarding interfaces
+ a_forwarding=$(jexec a ifconfig ${bridge_a} | grep forwarding)
+ b_forwarding=$(jexec b ifconfig ${bridge_b} | grep forwarding)
+
+ if [ -z "${a_forwarding}" ] && [ -z "${b_forwarding}" ]
+ then
+ atf_fail "STP failed to detect bridging loop"
+ fi
}
stp_cleanup()
@@ -182,6 +191,15 @@
then
atf_fail "STP failed to detect bridging loop"
fi
+
+ # We must also have at least some forwarding interfaces
+ a_forwarding=$(jexec a ifconfig ${bridge_a} | grep forwarding)
+ b_forwarding=$(jexec b ifconfig ${bridge_b} | grep forwarding)
+
+ if [ -z "${a_forwarding}" ] && [ -z "${b_forwarding}" ]
+ then
+ atf_fail "STP failed to detect bridging loop"
+ fi
}
stp_vlan_cleanup()

File Metadata

Mime Type
text/plain
Expires
Sun, Feb 1, 10:28 AM (17 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28343353
Default Alt Text
D28917.diff (987 B)

Event Timeline