1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

shtests: unignore SIGCONT

For some reason, Void Linux (with musl libc) sets SIGCONT to
ignored on the Linux console, causing the 'sleep -s' test in
builtins.sh to fail spuriously as it relies on SIGCONT to work.

src/cmd/ksh93/tests/shtests:
- Reset SIGCONT using the unadvertised 'trap + SIGCONT' feature.

Resolves: https://github.com/ksh93/ksh/issues/301
This commit is contained in:
Martijn Dekker 2021-11-22 16:54:51 +01:00
parent 74730c8ac7
commit 10ef74e1a2

View file

@ -171,7 +171,7 @@ function valxml
command set +o posix 2>/dev/null
unset DISPLAY FIGNORE HISTFILE POSIXLY_CORRECT _AST_FEATURES
export ENV=/./dev/null SHTESTS_COMMON=$PWD/_common
trap + PIPE # unadvertized -- set SIGPIPE to SIG_DFL #
trap + CONT PIPE # unadvertised -- set SIGCONT and SIGPIPE to SIG_DFL
integer compile=-1 posix=-1 utf8=-1
integer debug=0 keep=0 locale=0 time=1