mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 00:50:50 +00:00
tests/arp: when checking 'arp -d' check that entry is removed
Previous check trusted the "entry was deleted" output of the command. Improved check does additional request to make sure that entry is not returned.
This commit is contained in:
parent
6a3e87e130
commit
28bc1822b7
|
@ -78,6 +78,7 @@ arp_del_success_body() {
|
||||||
jexec ${jname} ping -c1 -t1 198.51.100.2
|
jexec ${jname} ping -c1 -t1 198.51.100.2
|
||||||
|
|
||||||
atf_check -o match:"198.51.100.2 \(198.51.100.2\) deleted" jexec ${jname} arp -nd 198.51.100.2
|
atf_check -o match:"198.51.100.2 \(198.51.100.2\) deleted" jexec ${jname} arp -nd 198.51.100.2
|
||||||
|
atf_check -s exit:1 -o match:"198.51.100.2 \(198.51.100.2\) -- no entry" jexec ${jname} arp -n 198.51.100.2
|
||||||
}
|
}
|
||||||
|
|
||||||
arp_del_success_cleanup() {
|
arp_del_success_cleanup() {
|
||||||
|
|
Loading…
Reference in a new issue