From: Collin Funk Date: Tue, 9 Jun 2026 04:56:48 +0000 (-0700) Subject: tests: install: check the behavior when strip is terminated by a signal X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=3ae92d6fd235db3811eb13839dda2bf2aed6ba91;p=thirdparty%2Fcoreutils.git tests: install: check the behavior when strip is terminated by a signal * tests/install/strip-program.sh: Add the test case. --- diff --git a/tests/install/strip-program.sh b/tests/install/strip-program.sh index 33f13eccad..08e6abb9b7 100755 --- a/tests/install/strip-program.sh +++ b/tests/install/strip-program.sh @@ -36,6 +36,15 @@ compare exp dest || fail=1 returns_ 1 ginstall src dest2 -s --strip-program=./FOO || fail=1 test -e dest2 && fail=1 +# Test the behavior when 'strip' is terminated by a signal. +cat < c || framework_failure_ +#!$SHELL +kill \$\$ +EOF +chmod a+x c || framework_failure_ +returns_ 1 ginstall src dest3 -s --strip-program=./c || fail=1 +test -e dest3 && fail=1 + # Ensure naked hyphens not passed cat < no-hyphen || framework_failure_ #!$SHELL