diff options
author | Bruno Haible <bruno@clisp.org> | 2022-11-26 15:25:44 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2022-11-26 15:25:44 +0100 |
commit | 835b3ea801782fcf72ef1f9397bb112cac0e2f50 (patch) | |
tree | 45803fd125a3005f4054232c3cb43ded1bc93347 /tests | |
parent | 6ec9bc73686fd42d0a1a82c914d89176745cddbd (diff) | |
download | gnulib-835b3ea801782fcf72ef1f9397bb112cac0e2f50.tar.gz |
In 'trap' commands, prefer symbolic to numeric signal names.
Reported by Mike Fulton <fultonm@ca.ibm.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2022-11/msg00130.html>.
* gnulib-tool: Use symbolic signal names.
* posix-modules: Likewise.
* MODULES.html.sh: Likewise.
* build-aux/bootstrap (prepare_GNULIB_SRCDIR): Likewise.
* build-aux/csharpcomp.sh.in: Likewise.
* build-aux/gnu-web-doc-update: Likewise.
* top/autogen.sh: Likewise.
* top/bootstrap-funclib.sh: Likewise.
* top/gitsub.sh: Likewise.
* lib/t-idcache: Likewise.
* tests/havelib/rpath-1: Likewise.
* tests/havelib/rpath-2_a: Likewise.
* tests/havelib/rpath-2_b: Likewise.
* tests/havelib/rpath-3_a: Likewise.
* tests/havelib/rpath-3_b: Likewise.
* tests/init.sh: Likewise.
* tests/test-binary-io.sh: Likewise.
* tests/test-c-stack.sh: Likewise.
* tests/test-c-stack2.sh: Likewise.
* tests/test-dprintf-posix.sh: Likewise.
* tests/test-fpending.sh: Likewise.
* tests/test-fprintf-posix.sh: Likewise.
* tests/test-lseek.sh: Likewise.
* tests/test-printf-posix.sh: Likewise.
* tests/test-select-in.sh: Likewise.
* tests/test-select-out.sh: Likewise.
* tests/test-sigpipe.sh: Likewise.
* tests/test-tsearch.sh: Likewise.
* tests/test-update-copyright.sh: Likewise.
* tests/test-vdprintf-posix.sh: Likewise.
* tests/test-vfprintf-posix.sh: Likewise.
* tests/test-vprintf-posix.sh: Likewise.
* tests/test-xprintf-posix.sh: Likewise.
* tests/uniwidth/test-uc_width2.sh: Likewise.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/havelib/rpath-1 | 2 | ||||
-rw-r--r-- | tests/havelib/rpath-2_a | 2 | ||||
-rw-r--r-- | tests/havelib/rpath-2_b | 2 | ||||
-rw-r--r-- | tests/havelib/rpath-3_a | 2 | ||||
-rw-r--r-- | tests/havelib/rpath-3_b | 2 | ||||
-rw-r--r-- | tests/init.sh | 2 | ||||
-rwxr-xr-x | tests/test-binary-io.sh | 2 | ||||
-rwxr-xr-x | tests/test-c-stack.sh | 2 | ||||
-rwxr-xr-x | tests/test-c-stack2.sh | 2 | ||||
-rwxr-xr-x | tests/test-dprintf-posix.sh | 2 | ||||
-rwxr-xr-x | tests/test-fpending.sh | 2 | ||||
-rwxr-xr-x | tests/test-fprintf-posix.sh | 2 | ||||
-rwxr-xr-x | tests/test-lseek.sh | 2 | ||||
-rwxr-xr-x | tests/test-printf-posix.sh | 2 | ||||
-rwxr-xr-x | tests/test-select-in.sh | 2 | ||||
-rwxr-xr-x | tests/test-select-out.sh | 2 | ||||
-rwxr-xr-x | tests/test-sigpipe.sh | 2 | ||||
-rwxr-xr-x | tests/test-tsearch.sh | 2 | ||||
-rwxr-xr-x | tests/test-update-copyright.sh | 2 | ||||
-rwxr-xr-x | tests/test-vdprintf-posix.sh | 2 | ||||
-rwxr-xr-x | tests/test-vfprintf-posix.sh | 2 | ||||
-rwxr-xr-x | tests/test-vprintf-posix.sh | 2 | ||||
-rwxr-xr-x | tests/test-xprintf-posix.sh | 2 | ||||
-rwxr-xr-x | tests/uniwidth/test-uc_width2.sh | 2 |
24 files changed, 24 insertions, 24 deletions
diff --git a/tests/havelib/rpath-1 b/tests/havelib/rpath-1 index 2d14f04546..821c304296 100644 --- a/tests/havelib/rpath-1 +++ b/tests/havelib/rpath-1 @@ -1,7 +1,7 @@ # Common portion of all rpath-1* tests. tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 +trap 'rm -fr $tmpfiles' HUP INT QUIT TERM builddir=`pwd` global_top_auxdir=`cd "$top_srcdir"/build-aux && pwd` diff --git a/tests/havelib/rpath-2_a b/tests/havelib/rpath-2_a index 3570e44441..25fcb9e95f 100644 --- a/tests/havelib/rpath-2_a +++ b/tests/havelib/rpath-2_a @@ -1,7 +1,7 @@ # Common portion of all rpath-2?a? tests. tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 +trap 'rm -fr $tmpfiles' HUP INT QUIT TERM builddir=`pwd` global_top_auxdir=`cd "$top_srcdir"/build-aux && pwd` diff --git a/tests/havelib/rpath-2_b b/tests/havelib/rpath-2_b index e851d0190d..827e611b75 100644 --- a/tests/havelib/rpath-2_b +++ b/tests/havelib/rpath-2_b @@ -1,7 +1,7 @@ # Common portion of all rpath-2?b? tests. tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 +trap 'rm -fr $tmpfiles' HUP INT QUIT TERM builddir=`pwd` global_top_auxdir=`cd "$top_srcdir"/build-aux && pwd` diff --git a/tests/havelib/rpath-3_a b/tests/havelib/rpath-3_a index 6ccc3f8683..d760243204 100644 --- a/tests/havelib/rpath-3_a +++ b/tests/havelib/rpath-3_a @@ -1,7 +1,7 @@ # Common portion of all rpath-3?a? tests. tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 +trap 'rm -fr $tmpfiles' HUP INT QUIT TERM builddir=`pwd` global_top_auxdir=`cd "$top_srcdir"/build-aux && pwd` diff --git a/tests/havelib/rpath-3_b b/tests/havelib/rpath-3_b index 71b4212881..fcdfbe63b0 100644 --- a/tests/havelib/rpath-3_b +++ b/tests/havelib/rpath-3_b @@ -1,7 +1,7 @@ # Common portion of all rpath-3?b? tests. tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 +trap 'rm -fr $tmpfiles' HUP INT QUIT TERM builddir=`pwd` global_top_auxdir=`cd "$top_srcdir"/build-aux && pwd` diff --git a/tests/init.sh b/tests/init.sh index d5d37c98f8..7d6afd16e2 100644 --- a/tests/init.sh +++ b/tests/init.sh @@ -702,4 +702,4 @@ test -f "$srcdir/init.cfg" \ setup_ "$@" # This trap is here, rather than in the setup_ function, because some # shells run the exit trap at shell function exit, rather than script exit. -trap remove_tmp_ 0 +trap remove_tmp_ EXIT diff --git a/tests/test-binary-io.sh b/tests/test-binary-io.sh index a177d9473f..7bc5aa07f4 100755 --- a/tests/test-binary-io.sh +++ b/tests/test-binary-io.sh @@ -1,7 +1,7 @@ #!/bin/sh tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 +trap 'rm -fr $tmpfiles' HUP INT QUIT TERM tmpfiles="$tmpfiles t-bin-out0.tmp t-bin-out1.tmp" ${CHECKER} ./test-binary-io${EXEEXT} 1 > t-bin-out1.tmp || exit 1 diff --git a/tests/test-c-stack.sh b/tests/test-c-stack.sh index 54009d3c01..f0bec55e32 100755 --- a/tests/test-c-stack.sh +++ b/tests/test-c-stack.sh @@ -1,7 +1,7 @@ #!/bin/sh tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 +trap 'rm -fr $tmpfiles' HUP INT QUIT TERM tmpfiles="t-c-stack.tmp" ${CHECKER} ./test-c-stack${EXEEXT} 2> t-c-stack.tmp diff --git a/tests/test-c-stack2.sh b/tests/test-c-stack2.sh index 7f035933f8..b7f8b26bd9 100755 --- a/tests/test-c-stack2.sh +++ b/tests/test-c-stack2.sh @@ -1,7 +1,7 @@ #!/bin/sh tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 +trap 'rm -fr $tmpfiles' HUP INT QUIT TERM tmpfiles="t-c-stack2.tmp" diff --git a/tests/test-dprintf-posix.sh b/tests/test-dprintf-posix.sh index 188ebe5592..cee608ddbc 100755 --- a/tests/test-dprintf-posix.sh +++ b/tests/test-dprintf-posix.sh @@ -1,7 +1,7 @@ #!/bin/sh tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 +trap 'rm -fr $tmpfiles' HUP INT QUIT TERM tmpfiles="$tmpfiles t-dprintf-posix.tmp t-dprintf-posix.out" ${CHECKER} ./test-dprintf-posix${EXEEXT} > t-dprintf-posix.tmp || exit 1 diff --git a/tests/test-fpending.sh b/tests/test-fpending.sh index abe7d83b99..4acd60a9f5 100755 --- a/tests/test-fpending.sh +++ b/tests/test-fpending.sh @@ -1,7 +1,7 @@ #!/bin/sh tmpfile= -trap 'rm -fr $tmpfile' 1 2 3 15 +trap 'rm -fr $tmpfile' HUP INT QUIT TERM tmpfile=test-fpending.t diff --git a/tests/test-fprintf-posix.sh b/tests/test-fprintf-posix.sh index 5391ee0b7b..b4948b72ef 100755 --- a/tests/test-fprintf-posix.sh +++ b/tests/test-fprintf-posix.sh @@ -1,7 +1,7 @@ #!/bin/sh tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 +trap 'rm -fr $tmpfiles' HUP INT QUIT TERM tmpfiles="$tmpfiles t-fprintf-posix.tmp t-fprintf-posix.out" ${CHECKER} ./test-fprintf-posix${EXEEXT} > t-fprintf-posix.tmp || exit 1 diff --git a/tests/test-lseek.sh b/tests/test-lseek.sh index ff206c66c7..ff553c93b2 100755 --- a/tests/test-lseek.sh +++ b/tests/test-lseek.sh @@ -1,7 +1,7 @@ #!/bin/sh tmpfiles= -trap 'rm -fr $tmpfiles' 1 2 3 15 +trap 'rm -fr $tmpfiles' HUP INT QUIT TERM tmpfiles=t-lseek.tmp # seekable files diff --git a/tests/test-printf-posix.sh b/tests/test-printf-posix.sh index 3ac993a2e9..480bfdb430 100755 --- a/tests/test-printf-posix.sh +++ b/tests/test-printf-posix.sh @@ -1,7 +1,7 @@ #!/bin/sh tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 +trap 'rm -fr $tmpfiles' HUP INT QUIT TERM tmpfiles="$tmpfiles t-printf-posix.tmp t-printf-posix.out" ${CHECKER} ./test-printf-posix${EXEEXT} > t-printf-posix.tmp || exit 1 diff --git a/tests/test-select-in.sh b/tests/test-select-in.sh index 68176d3059..ad86ea2526 100755 --- a/tests/test-select-in.sh +++ b/tests/test-select-in.sh @@ -5,7 +5,7 @@ # of /dev/null. tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 +trap 'rm -fr $tmpfiles' HUP INT QUIT TERM tmpfiles="$tmpfiles t-select-in.tmp" diff --git a/tests/test-select-out.sh b/tests/test-select-out.sh index dbeace505e..cfa5e17957 100755 --- a/tests/test-select-out.sh +++ b/tests/test-select-out.sh @@ -2,7 +2,7 @@ # Test select() on file descriptors opened for writing. tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 +trap 'rm -fr $tmpfiles' HUP INT QUIT TERM tmpfiles="$tmpfiles t-select-out.out t-select-out.tmp" diff --git a/tests/test-sigpipe.sh b/tests/test-sigpipe.sh index 58a19acf7c..5c87f6ed50 100755 --- a/tests/test-sigpipe.sh +++ b/tests/test-sigpipe.sh @@ -1,7 +1,7 @@ #!/bin/sh tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 +trap 'rm -fr $tmpfiles' HUP INT QUIT TERM # Test signal's default behaviour. tmpfiles="$tmpfiles t-sigpipeA.tmp" diff --git a/tests/test-tsearch.sh b/tests/test-tsearch.sh index dfc80eed5f..28539bd80f 100755 --- a/tests/test-tsearch.sh +++ b/tests/test-tsearch.sh @@ -1,7 +1,7 @@ #!/bin/sh tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 +trap 'rm -fr $tmpfiles' HUP INT QUIT TERM tmpfiles="$tmpfiles t-tsearch.out" ${CHECKER} ./test-tsearch${EXEEXT} > t-tsearch.out 2>&1 diff --git a/tests/test-update-copyright.sh b/tests/test-update-copyright.sh index 29cf6e99a0..5fc9492117 100755 --- a/tests/test-update-copyright.sh +++ b/tests/test-update-copyright.sh @@ -28,7 +28,7 @@ PATH=$abs_aux_dir:$PATH export PATH TMP_BASE=update-copyright.test -trap 'rm -f $TMP_BASE*' 0 1 2 3 15 +trap 'rm -f $TMP_BASE*' EXIT HUP INT QUIT TERM ## --------------------------------- ## ## Skip if user does not have perl. ## diff --git a/tests/test-vdprintf-posix.sh b/tests/test-vdprintf-posix.sh index a2616b3793..7fcfd50fac 100755 --- a/tests/test-vdprintf-posix.sh +++ b/tests/test-vdprintf-posix.sh @@ -1,7 +1,7 @@ #!/bin/sh tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 +trap 'rm -fr $tmpfiles' HUP INT QUIT TERM tmpfiles="$tmpfiles t-vdprintf-posix.tmp t-vdprintf-posix.out" ${CHECKER} ./test-vdprintf-posix${EXEEXT} > t-vdprintf-posix.tmp || exit 1 diff --git a/tests/test-vfprintf-posix.sh b/tests/test-vfprintf-posix.sh index d5453e3f9c..0d0945e411 100755 --- a/tests/test-vfprintf-posix.sh +++ b/tests/test-vfprintf-posix.sh @@ -1,7 +1,7 @@ #!/bin/sh tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 +trap 'rm -fr $tmpfiles' HUP INT QUIT TERM tmpfiles="$tmpfiles t-vfprintf-posix.tmp t-vfprintf-posix.out" ${CHECKER} ./test-vfprintf-posix${EXEEXT} > t-vfprintf-posix.tmp || exit 1 diff --git a/tests/test-vprintf-posix.sh b/tests/test-vprintf-posix.sh index 7e85eb2948..c2625c44c4 100755 --- a/tests/test-vprintf-posix.sh +++ b/tests/test-vprintf-posix.sh @@ -1,7 +1,7 @@ #!/bin/sh tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 +trap 'rm -fr $tmpfiles' HUP INT QUIT TERM tmpfiles="$tmpfiles t-vprintf-posix.tmp t-vprintf-posix.out" ${CHECKER} ./test-vprintf-posix${EXEEXT} > t-vprintf-posix.tmp || exit 1 diff --git a/tests/test-xprintf-posix.sh b/tests/test-xprintf-posix.sh index f46059fa11..35da74256a 100755 --- a/tests/test-xprintf-posix.sh +++ b/tests/test-xprintf-posix.sh @@ -1,7 +1,7 @@ #!/bin/sh tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 +trap 'rm -fr $tmpfiles' HUP INT QUIT TERM tmpfiles="$tmpfiles t-xprintf-posix.tmp t-xprintf-posix.out" ${CHECKER} ./test-xprintf-posix${EXEEXT} > t-xprintf-posix.tmp || exit 1 diff --git a/tests/uniwidth/test-uc_width2.sh b/tests/uniwidth/test-uc_width2.sh index 2833aef189..ae6f8f4594 100755 --- a/tests/uniwidth/test-uc_width2.sh +++ b/tests/uniwidth/test-uc_width2.sh @@ -1,7 +1,7 @@ #!/bin/sh tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 +trap 'rm -fr $tmpfiles' HUP INT QUIT TERM tmpfiles="$tmpfiles uc_width.out" ${CHECKER} ./test-uc_width2${EXEEXT} | LC_ALL=C tr -d '\r' > uc_width.out |