From 3ae92d6fd235db3811eb13839dda2bf2aed6ba91 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Mon, 8 Jun 2026 21:56:48 -0700 Subject: [PATCH] tests: install: check the behavior when strip is terminated by a signal * tests/install/strip-program.sh: Add the test case. --- tests/install/strip-program.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/install/strip-program.sh b/tests/install/strip-program.sh index 33f13ecca..08e6abb9b 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