Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Apr 2025 19:46:39 GMT
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: a25b03791764 - main - timeout(1): adapt the preserve_status test to the new behaviour
Message-ID:  <202504161946.53GJkdDd063994@gitrepo.freebsd.org>

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

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

commit a25b03791764b7817a1a3e05ac1ab91c75a946ac
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2025-04-16 19:41:30 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2025-04-16 19:45:38 +0000

    timeout(1): adapt the preserve_status test to the new behaviour
    
    atf-check cannot check anymore the exit number if the program is
    terminated via a signal, it needs to be catched by -s signal
    because we cannot pass twice the -s command, we cannot anymore check
    for the exit value :(
---
 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 d08f6c01e067..a72aed609d47 100644
--- a/bin/timeout/tests/timeout_test.sh
+++ b/bin/timeout/tests/timeout_test.sh
@@ -86,7 +86,7 @@ exit_numbers_body()
 	atf_check \
 		-o empty \
 		-e empty \
-		-s exit:143 \
+		-s signal:15 \
 		timeout --preserve-status .1 sleep 10
 
 	atf_check \



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