From nobody Thu Nov 14 19:41:53 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Xq9X22PGXz5d4N3; Thu, 14 Nov 2024 19:41:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xq9X12jQQz425w; Thu, 14 Nov 2024 19:41:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731613313; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3Ruxqmuw7TJp29LXnjbRGH8hxNSXWry4KPV87Ncpdq8=; b=vcT9Ncd+ie4U+UfRUIZxs0g79s6e9KpsPAhJT2ROakm8Jw2QMHEV4M7dQM5mr/8NLXe/0A IjnuRIdrwtVzeixQ2pw5K9wcVjnujinXJQqVn5uXRgrqhkJALWhM3/mQMZukpgtW07+hYr 8IdQEOfiq56O0DaT1jNORu81QbtCGmTzOislelB7edKWevevSPdlhwZAi1tu4RHi10JPfA 9oYZl6VipeZwvXC7I2nWolsmmWZTARfXr+zRglL00aLT8Y8KZ9u5ttPtLO/Sx6PggT+9JE 78RrMK5DSQfcOj4nXd8BYmbDE/b4pBpz0WGFkfXZtro0uYVz1eN5JC/nEu6UWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731613313; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3Ruxqmuw7TJp29LXnjbRGH8hxNSXWry4KPV87Ncpdq8=; b=uHECrMBCrmU4lO8jsCc8ZbGi2mV3Aj5OFZZT5t2t2Sdc4PXzrNcG52s3t+ZsZPHImXjQWP 2nrZcMScQZcjb2dXJ30inT9UYc7BO/JbMIxgvjAJ32wrNRL7j5JT724jAL4oJ69SOdMmgp +6E5YBHiCmP07R8XJw3qqdKOYufR0rta/UGGx2bXaAjubSG9/wLBkac0+JHHjo9eci7NU7 PReSQVqxBShBjyohLAOGzHdUFckfSOVwbqGo0PzlMa5UUG3oFP4LqpoQyIKbdwwxT/Dsgb l2cNC3dlbwaXyXUFftAwrNd42hu7XilWswqCWKY5mHRI4G7gklNmwIJmO3FUrw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731613313; a=rsa-sha256; cv=none; b=DZU5/eSs6JWaydVTiHsKSVKaYRZUfHdQL/H8basDYuG0ZKQP0NIb71Kk5Y4qR0s+Ra9vt4 cQh1tShD0VsEsMzciyfmrebcZIES1nmJuMvL+k2mONqfjj0RQOEjsVL6wSWoeGnqvuxuWa 3q0tP3PSGpg76sPJmMblZmRxvsVQxZtuEJflxB2itgVknyH2++DAgmfvm5unwXbV3g/aV3 K1J9KbPm5w6ZC1EzKRtudbQjkqk2VDgqSIU7006RMfAr6jfPR1+De7zMBNo0X3xiw4QjB+ 8bW5p+CFGOkbCzHCXXkaTKuCKOmUA+OF9P2VVmKbgMqm5ESqctsZJOYmAYgH3g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Xq9X12Gdkzs86; Thu, 14 Nov 2024 19:41:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AEJfrZX038577; Thu, 14 Nov 2024 19:41:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AEJfrkI038574; Thu, 14 Nov 2024 19:41:53 GMT (envelope-from git) Date: Thu, 14 Nov 2024 19:41:53 GMT Message-Id: <202411141941.4AEJfrkI038574@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: b697835ce614 - main - Improve reliability of stdout tests. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b697835ce614de2fa30ba066983d7e71c48f34ce Auto-Submitted: auto-generated The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=b697835ce614de2fa30ba066983d7e71c48f34ce commit b697835ce614de2fa30ba066983d7e71c48f34ce Author: Dag-Erling Smørgrav AuthorDate: 2024-11-14 19:41:35 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2024-11-14 19:41:47 +0000 Improve reliability of stdout tests. If the test runner is under heavy load, the command we are testing may succeed in printing to stdout before the dummy receiver has terminated. Add a short delay to reduce the likelihood of this happening. MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D47572 --- usr.bin/asa/tests/asa_test.sh | 1 + usr.bin/cmp/tests/cmp_test2.sh | 1 + usr.bin/env/tests/env_test.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/usr.bin/asa/tests/asa_test.sh b/usr.bin/asa/tests/asa_test.sh index 91515bb55d95..2b8fecb12d98 100644 --- a/usr.bin/asa/tests/asa_test.sh +++ b/usr.bin/asa/tests/asa_test.sh @@ -70,6 +70,7 @@ stdout_head() { stdout_body() { ( trap "" PIPE + sleep 1 echo " $a $b" | asa 2>stderr echo $? >result ) | true diff --git a/usr.bin/cmp/tests/cmp_test2.sh b/usr.bin/cmp/tests/cmp_test2.sh index 2ec6071851d3..bca8fc18a6b8 100755 --- a/usr.bin/cmp/tests/cmp_test2.sh +++ b/usr.bin/cmp/tests/cmp_test2.sh @@ -138,6 +138,7 @@ atf_check_stdout() { ( trap "" PIPE + sleep 1 cmp "$@" 2>stderr echo $? >result ) | true diff --git a/usr.bin/env/tests/env_test.sh b/usr.bin/env/tests/env_test.sh index 2dc8f1a4c911..3210361eb223 100644 --- a/usr.bin/env/tests/env_test.sh +++ b/usr.bin/env/tests/env_test.sh @@ -139,6 +139,7 @@ stdout_body() { ( trap "" PIPE + sleep 1 env 2>stderr echo $? >result ) | true