summaryrefslogtreecommitdiff
path: root/usr.bin/unifdef
diff options
context:
space:
mode:
authorKlemens Nanni <kn@cvs.openbsd.org>2022-10-16 12:34:14 +0000
committerKlemens Nanni <kn@cvs.openbsd.org>2022-10-16 12:34:14 +0000
commitcb8e68ed92cdffe1a53d14ed40ef5d3a340c4e36 (patch)
tree124de485242688405d07597d8ad07ac9a016ede8 /usr.bin/unifdef
parenta4fbf77a5aced45b3fa707379e23e09d7470a875 (diff)
Add new failing read/signal test
^C does not abort `read < /dev/zero', instead it read(2)s indefinitely, one null byte at a time; bash and ksh93 from ports abort as expected. Use the new timeout(1) $PROG trick to send ^C after 0.1s, but also rely on it's -k for the final SIGKILL to stop the busy-looping process. ./th's `time-limit: 1' prints "test timed out (limit of 1 seconds)" but leaves the process running.
Diffstat (limited to 'usr.bin/unifdef')
0 files changed, 0 insertions, 0 deletions