From 28bc1822b7861112755dc2a6971eadac0f94a264 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Tue, 20 Feb 2024 10:32:03 -0800 Subject: [PATCH] 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. --- tests/sys/netinet/arp.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/sys/netinet/arp.sh b/tests/sys/netinet/arp.sh index 9181d38b10b0..f13ba467a2d9 100755 --- a/tests/sys/netinet/arp.sh +++ b/tests/sys/netinet/arp.sh @@ -78,6 +78,7 @@ arp_del_success_body() { 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 -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() {