freebsd-dev/bin/sh/tests
Jilles Tjoelker c1602cfd61 sh/tests: Fix flaky execution/bg12.0
When job control is not enabled, the shell ignores SIGINT while waiting for
a foreground process unless that process exits on SIGINT. In this case, the
foreground process is sleep and it does not exit on SIGINT because the
signal is only sent to the shell. Depending on order of events, this could
cause the SIGINT to be unexpectedly ignored.

On lightly loaded bare metal, the chance of this happening tends to be less
than 0.01% but with higher loads and/or virtualization it becomes more
likely.

Starting the sleep in background and using the wait builtin ensures SIGINT
will not be ignored.

PR:		247559
Reported by:	lwhsu
MFC after:	1 week
2020-06-28 21:15:29 +00:00
..
builtins sh: Don't treat % specially in CDPATH 2018-07-15 21:55:17 +00:00
errors sh: Use 126 and 127 exit status for failures opening a script 2018-11-27 21:49:59 +00:00
execution sh/tests: Fix flaky execution/bg12.0 2020-06-28 21:15:29 +00:00
expansion sh/tests: Improve failure messages of expansion/arith15.0 2019-03-07 22:51:58 +00:00
invocation DIRDEPS_BUILD: Connect new directories. 2017-10-31 00:04:07 +00:00
parameters sh: Do not import IFS's value from the environment. 2016-10-08 13:40:12 +00:00
parser sh/tests: Test some obscure cases with aliasing keywords 2020-05-12 21:59:21 +00:00
set-e Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
functional_test.sh Temporarily skip flakey bin.sh.execution.functional_test.bg12 in CI 2020-06-26 09:39:23 +00:00
Makefile sh: Add tests for sh -c that already pass. 2017-08-12 19:17:48 +00:00
Makefile.depend DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00