spec test index / oilshell.org
35 passed, 2 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped 3 failed under osh
osh | 1 trap 'echo hi' KILL (regression test, caught by smoosh suite) stdout: status=1 status=1 status=1 status=0stderr: trap 'echo hi' 9 ^ [ stdin ]:1: Signal '9' can't be handled trap 'echo hi' KILL ^~~~ [ stdin ]:4: Invalid signal or hook 'KILL' trap 'echo hi' STOP ^~~~ [ stdin ]:7: Signal 'STOP' can't be handled |
osh-cpp | 1 trap 'echo hi' KILL (regression test, caught by smoosh suite) stdout: status=1 status=1 status=1 status=0stderr: trap 'echo hi' 9 ^ [ stdin ]:1: Signal '9' can't be handled trap 'echo hi' KILL ^~~~ [ stdin ]:4: Invalid signal or hook 'KILL' trap 'echo hi' STOP ^~~~ [ stdin ]:7: Signal 'STOP' can't be handled |
osh | 13 trap EXIT doesn't run with shopt -s no_fork_last [osh stdout] Expected 'exit1\nexit2\n', got 'exit1\nexit2\nexit3\n' stdout: exit1 exit2 exit3stderr: shopt -s no_fork_last ^~~~~ [ -c flag ]:1: 'shopt' got invalid option 'no_fork_last' |
osh-cpp | 13 trap EXIT doesn't run with shopt -s no_fork_last [osh-cpp stdout] Expected 'exit1\nexit2\n', got 'exit1\nexit2\nexit3\n' stdout: exit1 exit2 exit3stderr: shopt -s no_fork_last ^~~~~ [ -c flag ]:1: 'shopt' got invalid option 'no_fork_last' |
osh | 19 trap USR1, sleep, SIGINT: non-interactively [osh stdout] Expected 'usr1\nstatus=0\n', got 'status=0\n' stdout: status=0stderr: |
osh | 20 trap INT, sleep, SIGINT: non-interactively [osh stdout] Expected 'status=0\n', got 'int\nstatus=0\n' stdout: int status=0stderr: |
osh-cpp | 20 trap INT, sleep, SIGINT: non-interactively [osh-cpp stdout] Expected 'status=0\n', got '\nstatus=0\n' stdout: status=0stderr: |