Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F139379348
D37250.id112557.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
909 B
Referenced Files
None
Subscribers
None
D37250.id112557.diff
View Options
Index: sbin/ping/tests/ping_test.sh
===================================================================
--- sbin/ping/tests/ping_test.sh
+++ sbin/ping/tests/ping_test.sh
@@ -129,20 +129,28 @@
ping_46_head()
{
- atf_set "descr" "-4 and -6 may not be used together"
+ atf_set "descr" "-4 and -6 cannot be used simultaneously"
}
ping_46_body()
{
- atf_check -s exit:1 -e ignore ping -4 -6
+ require_ipv4
+ require_ipv6
+ atf_check -s exit:1 \
+ -e match:"-4 and -6 cannot be used simultaneously" \
+ ping -4 -6 localhost
}
ping6_46_head()
{
- atf_set "descr" "-4 and -6 may not be used together"
+ atf_set "descr" "-4 and -6 cannot be used simultaneously"
}
ping6_46_body()
{
- atf_check -s exit:1 -e ignore ping6 -4 -6
+ require_ipv4
+ require_ipv6
+ atf_check -s exit:1 \
+ -e match:"-4 and -6 cannot be used simultaneously" \
+ ping6 -4 -6 localhost
}
atf_init_test_cases()
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 12, 11:38 AM (4 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26895343
Default Alt Text
D37250.id112557.diff (909 B)
Attached To
Mode
D37250: ping_test: Fix tests ping_46 and ping6_46
Attached
Detach File
Event Timeline
Log In to Comment