Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149769863
D37570.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D37570.diff
View Options
diff --git a/tests/sys/netpfil/pf/names.sh b/tests/sys/netpfil/pf/names.sh
--- a/tests/sys/netpfil/pf/names.sh
+++ b/tests/sys/netpfil/pf/names.sh
@@ -53,7 +53,51 @@
pft_cleanup
}
+atf_test_case "group" "cleanup"
+group_head()
+{
+ atf_set descr 'Test group cleanup, PR257218'
+ atf_set require.user root
+}
+
+group_body()
+{
+ pft_init
+
+ vnet_mkjail alcatraz
+
+ if [ -n "$(jexec alcatraz pfctl -sI | grep '^epair$')" ];
+ then
+ atf_fail "Unexpected epair group"
+ fi
+
+ epair=$(vnet_mkepair)
+ if [ -n "$(jexec alcatraz pfctl -sI | grep '^epair$')" ];
+ then
+ atf_fail "Unexpected epair group"
+ fi
+
+ ifconfig ${epair}b vnet alcatraz
+ if [ -z "$(jexec alcatraz pfctl -sI | grep '^epair$')" ];
+ then
+ atf_fail "Failed to find epair group"
+ fi
+
+ ifconfig ${epair}a destroy
+
+ if [ -n "$(jexec alcatraz pfctl -sI | grep '^epair$')" ];
+ then
+ atf_fail "Unexpected epair group"
+ fi
+}
+
+group_cleanup()
+{
+ pft_cleanup
+}
+
atf_init_test_cases()
{
atf_add_test_case "names"
+ atf_add_test_case "group"
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 27, 11:03 PM (5 h, 44 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30447291
Default Alt Text
D37570.diff (1 KB)
Attached To
Mode
D37570: pf tests: check that we clean up unused kifs
Attached
Detach File
Event Timeline
Log In to Comment