From nobody Mon Dec 09 12:39:41 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 4Y6LzK4QGgz5gFvT; Mon, 09 Dec 2024 12:39:41 +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 4Y6LzK3yjKz44FB; Mon, 9 Dec 2024 12:39:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733747981; 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=KA16uSGFvc5UWadDhwIN7OTzpkLjrejJAbgLwU836Fc=; b=uY7kjQimowp63ZXUCXb8hQkB/fbgjW9UphpdLQGnjiBiD9Qd6SSN8hbICE+NhCqCmxhGND szoQ/4r6VSbPxycWJvS/9uNZ7c78ptDtp2DCfTV69uyUFCiWx0tay3na8ilc+ZHedk/tF0 orcb+Nc6ZX7kWTMB9083OW3Nsw49SKg2YlaIuZkLy5QY9o0y+GohOHOzuVKiR7+fceCziD 4rdNSGj+XGSuefIGnCgPcaXCO7pZtBk0Un84/MgW8xUDN+r9o3T6A+KWaJ0/X0TF8Egvq5 aQZy+trGxdLlinStIb/g8QaudAjmOr/46befKaZXjN03v1VUrv7CLjMTv4kb8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733747981; 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=KA16uSGFvc5UWadDhwIN7OTzpkLjrejJAbgLwU836Fc=; b=x2hWxPPHPy5Fd594dpXfnumkxsFKjVx4MJd3KgWrxa3hRn5Ydpqcn6dlMPs4gRqZ3pYFGM 8YZQ6uyXLra08ZCD97xOgfoZvbvFxn/MzQukgEyFm25FVCal4Q3bwLfHu03a2c1Z9Qk/90 PVdxKvEZX8LPxsoXOejBrIY0RWB9lUEuV/j/ik9e+4N34KVSZXbHeYtB4zfLKnXuLBNP/y p/IUsUGUSXC5YtKJ1Q3SGgtlwIiS4uF9Hw1XlgDD510NP/2G6oU0y9Yg5k2mIyBYZ30YPY ymMtwliXQPvGjxMrNhWeLnZz/UAcXoXehIy66iQGLNayX2b+2can5XwWtyEopg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733747981; a=rsa-sha256; cv=none; b=lbUUcnq6o59yUX+XLJehbOJekqB0hESE+d/epMpqGcFv0oD7FQ/cO4MCLiJrAUDhdqkH7w 33ji/2dP1lHH9apNqfn/Qry+U500Qp6Hq6vVK2KalYMfjOS7TKWhCFGnmV8e7jOzu3QlFY FX2T9HII5nLDS47eDgfXuma5R6GkxMEOl3CfbYfAa/pCNhP524Wx17WAiggRg0rfVWHcd1 4C3DNUX9NHO8RSxc7dgHvK923yxWhzpT6u7RZziLrP9u6XCyWK+FiFirW9fCI5tKkf31XZ FHeOJmiSGfe846CNREntIefdTPjfgw3GUxvyzPG/9c2s6aBPL+VLacf7OtLJyA== 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 4Y6LzK3Z3KzdYJ; Mon, 9 Dec 2024 12:39:41 +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 4B9CdfJj008369; Mon, 9 Dec 2024 12:39:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B9CdfY6008366; Mon, 9 Dec 2024 12:39:41 GMT (envelope-from git) Date: Mon, 9 Dec 2024 12:39:41 GMT Message-Id: <202412091239.4B9CdfY6008366@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: 0ff2b4a85b66 - stable/14 - 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 0ff2b4a85b66d5fb8cf526a47c6367671bc2bc42 Auto-Submitted: auto-generated The branch stable/14 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=0ff2b4a85b66d5fb8cf526a47c6367671bc2bc42 commit 0ff2b4a85b66d5fb8cf526a47c6367671bc2bc42 Author: Dag-Erling Smørgrav AuthorDate: 2024-11-14 19:41:35 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2024-12-09 12:39:21 +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 (cherry picked from commit b697835ce614de2fa30ba066983d7e71c48f34ce) --- 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