Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140863827
D46617.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
748 B
Referenced Files
None
Subscribers
None
D46617.diff
View Options
diff --git a/tests/sys/net/if_ovpn/if_ovpn.sh b/tests/sys/net/if_ovpn/if_ovpn.sh
--- a/tests/sys/net/if_ovpn/if_ovpn.sh
+++ b/tests/sys/net/if_ovpn/if_ovpn.sh
@@ -1048,6 +1048,27 @@
ovpn_cleanup
}
+atf_test_case "destroy_unused" "cleanup"
+destroy_unused_head()
+{
+ atf_set descr 'Destroy an if_ovpn interface before it is used'
+ atf_set require.user root
+}
+
+destroy_unused_body()
+{
+ ovpn_init
+
+ intf=$(ifconfig ovpn create)
+ atf_check -s exit:0 \
+ ifconfig ${intf} destroy
+}
+
+destroy_unused_cleanup()
+{
+ ovpn_cleanup
+}
+
atf_init_test_cases()
{
atf_add_test_case "4in4"
@@ -1062,4 +1083,5 @@
atf_add_test_case "ra"
atf_add_test_case "chacha"
atf_add_test_case "gcm_128"
+ atf_add_test_case "destroy_unused"
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 30, 12:12 AM (11 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27370900
Default Alt Text
D46617.diff (748 B)
Attached To
Mode
D46617: if_ovpn tests: destroy an if_ovpn interface before it's been used
Attached
Detach File
Event Timeline
Log In to Comment