Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Feb 2024 18:33:23 GMT
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 28bc1822b786 - main - tests/arp: when checking 'arp -d' check that entry is removed
Message-ID:  <202402201833.41KIXNNv008777@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=28bc1822b7861112755dc2a6971eadac0f94a264

commit 28bc1822b7861112755dc2a6971eadac0f94a264
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2024-02-20 18:32:03 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2024-02-20 18:32:03 +0000

    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() {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202402201833.41KIXNNv008777>