diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2024-01-05 21:10:00 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2024-01-05 21:10:00 -0700 |
commit | da12979f1fed56b91d5d5ad00724751f595ce656 (patch) | |
tree | 5f48801ee2a5ba0d2d83791deef392ae41de5439 /rand.c | |
parent | 27d3fc8a546716dca12e47d4eea8f3cec4bbf94a (diff) | |
download | txr-da12979f1fed56b91d5d5ad00724751f595ce656.tar.gz txr-da12979f1fed56b91d5d5ad00724751f595ce656.tar.bz2 txr-da12979f1fed56b91d5d5ad00724751f595ce656.zip |
tests: fix tests/007/except-4.txr for Solaris, BSD.
* tests/007/except-4.txr: The portable way to get a shell
command that exits with a signal is to execute kill -KILL $$.
If we use a signal that the shell catch like SIGTERM or
SIGINT, we get nonportable behaviors. Some shells seem to
catch the signal and then raise it again so they terminate
with that signal. Some shells terminate normally, but create
an exit status by OR-ing 0x80 with the caught signal.
Let's use kill -KILL here and drop the tests for BSD and
Solaris.
* tests/007/except-3.txr: Fix the kill command here also.
While this test wasn't failing on those platforms, it succeeds
vacuously, since the exception being ignored by :nothrow
is not actually thrown.
Diffstat (limited to 'rand.c')
0 files changed, 0 insertions, 0 deletions