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

tests/coprocess.sh: activate known intermittent fail as warning

https://github.com/ksh93/ksh/issues/132#issuecomment-997432781
This commit is contained in:
Martijn Dekker 2022-06-04 11:29:43 +01:00
parent 1184b2ade9
commit 73cd1a9ee0

View file

@ -217,10 +217,7 @@ do
# TODO: The /bin/cat iteration of this test is known to hang intermittently on Debian and # TODO: The /bin/cat iteration of this test is known to hang intermittently on Debian and
# derived systems (such as Ubuntu). See: https://github.com/ksh93/ksh/issues/132 # derived systems (such as Ubuntu). See: https://github.com/ksh93/ksh/issues/132
# It is temporarily disabled here to avoid Github CI failures due to this known issue trap 'sleep_pid=; kill $pid; warning "$cat coprocess 2 hung (known issue, help us fix it at <https://github.com/ksh93/ksh/issues/132>)"' TERM
# while we work on other things. Export DEBUG_COPROCESS to include it in the tests.
if [[ $cat != "$bincat" || -v DEBUG_COPROCESS ]]; then
trap 'sleep_pid=; kill $pid; err_exit "$cat coprocess 2 hung"' TERM
{ sleep 5; kill $$; } & { sleep 5; kill $$; } &
sleep_pid=$! sleep_pid=$!
$cat |& $cat |&
@ -231,7 +228,6 @@ if [[ $cat != "$bincat" || -v DEBUG_COPROCESS ]]; then
wait $pid 2> /dev/null wait $pid 2> /dev/null
trap - TERM trap - TERM
[[ $sleep_pid ]] && kill $sleep_pid [[ $sleep_pid ]] && kill $sleep_pid
fi
trap 'sleep_pid=; kill $pid; err_exit "$cat coprocess 3 hung"' TERM trap 'sleep_pid=; kill $pid; err_exit "$cat coprocess 3 hung"' TERM
{ sleep 5; kill $$; } & { sleep 5; kill $$; } &