git: 4078e0d1d6f8 - main - timeout(1) tests: atf_fail requires a reason
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 Jun 2025 23:53:22 UTC
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"
}