Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Oct 2023 15:22:01 GMT
From:      Brad Davis <brd@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 7bf5f682c073 - main - Improve the pf nat exhaustion test by checking the reply from the echo server
Message-ID:  <202310061522.396FM1dL091687@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=7bf5f682c073fe271b159964f8f17eb2ac8590b3

commit 7bf5f682c073fe271b159964f8f17eb2ac8590b3
Author:     Brad Davis <brd@FreeBSD.org>
AuthorDate: 2023-10-06 15:19:51 +0000
Commit:     Brad Davis <brd@FreeBSD.org>
CommitDate: 2023-10-06 15:19:51 +0000

    Improve the pf nat exhaustion test by checking the reply from the echo server
    
    Event:  Oslo Hackathon
    Approved by:    kp
---
 tests/sys/netpfil/pf/nat.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/sys/netpfil/pf/nat.sh b/tests/sys/netpfil/pf/nat.sh
index 4ceded782cfb..7cc0d8f35c96 100644
--- a/tests/sys/netpfil/pf/nat.sh
+++ b/tests/sys/netpfil/pf/nat.sh
@@ -61,8 +61,8 @@ exhaust_body()
 	# Sanity check
 	atf_check -s exit:0 -o ignore ping -c 3 198.51.100.2
 
-	echo "foo" | nc -N 198.51.100.2 7
-	echo "foo" | nc -N 198.51.100.2 7
+	atf_check -s exit:0 -o match:foo* echo "foo" | nc -N 198.51.100.2 7
+	atf_check -s exit:0 -o match:foo* echo "foo" | nc -N 198.51.100.2 7
 
 	# This one will fail, but that's expected
 	echo "foo" | nc -N 198.51.100.2 7 &



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