Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jun 2025 23:53:22 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 4078e0d1d6f8 - main - timeout(1) tests: atf_fail requires a reason
Message-ID:  <202506092353.559NrML1006894@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=4078e0d1d6f8189bff44fcad04df256220035f76

commit 4078e0d1d6f8189bff44fcad04df256220035f76
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-06-09 10:26:07 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-06-09 23:52:41 +0000

    timeout(1) tests: atf_fail requires a reason
    
    Reviewed by:    markj
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D50752
---
 bin/timeout/tests/timeout_test.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/timeout/tests/timeout_test.sh b/bin/timeout/tests/timeout_test.sh
index a72aed609d47..b1bf69968e84 100644
--- a/bin/timeout/tests/timeout_test.sh
+++ b/bin/timeout/tests/timeout_test.sh
@@ -112,7 +112,7 @@ with_a_child_body()
 {
 	out=$(sleep .1 & exec timeout .5 sh -c 'sleep 2; echo foo')
 	status=$?
-	test "$out" = "" && test $status = 124 || atf_fail
+	test "$out" = "" && test $status = 124 || atf_fail "wrong status $status"
 
 }
 



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