mirror of
git://git.sv.gnu.org/coreutils
synced 2026-06-20 23:54:19 -04:00
tests: install: check the behavior when strip is terminated by a signal
* tests/install/strip-program.sh: Add the test case.
This commit is contained in:
@@ -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 <<EOF > 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 <<EOF > no-hyphen || framework_failure_
|
||||
#!$SHELL
|
||||
|
||||
Reference in New Issue
Block a user