Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shtests: make tests more interruptable with Ctrl+C
Sometimes you have to put ^C on rapid repeat to get out of running the tests. This is because each test scripts is launch as a child shell (not a subshell) in the foreground, which thus handle the ^C. It then exits with a status indicating SIGINT, but the shtest script wasn't handling this and just kept going. src/cmd/ksh93/tests/shtests: - For reasons I don't understand yet, interrupting tests with ^C tends to make them exit with status 130 (128+2) instead of what I would expect for ksh93, 258 (256+2). Not a big deal: POSIX specifies that any exit > 128 signifies a signal in any case, and 'kill -l' works even on those values. But the checks need changing to '> 128'. - Check each result for SIGINT, and issue SIGINT to self if found. (cherry picked from commit d0dfb37c6c71ac7b157060249125e0959130927d)
- Loading branch information