-------- CASE: control_flow Line 135 of 'test/runtime-errors.sh' break ^~~~~ osh warning: Invalid control flow at top level Line 136 of 'test/runtime-errors.sh' continue ^~~~~~~~ osh warning: Invalid control flow at top level SHOULD NOT GET HERE STATUS: 0 -------- CASE: no_such_command Unexpected error in execvpe('ZZZZZ', ['ZZZZZ'], ...): [Errno 2] No such file or directory Line 39 of 'test/runtime-errors.sh' ZZZZZ ^~~~~ [7001] '' command exited with status 127 STATUS: 127 -------- CASE: no_such_command_commandsub Unexpected error in execvpe('ZZZZZ', ['ZZZZZ'], ...): [Errno 2] No such file or directory SHOULD NOT GET HERE STATUS: 0 -------- CASE: no_such_command_heredoc Unexpected error in execvpe('ZZZZZ', ['ZZZZZ'], ...): [Errno 2] No such file or directory one three SHOULD NOT GET HERE STATUS: 0 -------- CASE: failed_command Line 66 of 'test/runtime-errors.sh' false ^~~~~ [7011] '' command exited with status 1 STATUS: 1 -------- CASE: pipefail 0 Line 76 of 'test/runtime-errors.sh' false | wc -l ^~~~~ [7015] '' command exited with status 1 0 *** Error has no source location info *** [7012] 'Pipeline' exited with status 1 STATUS: 1 -------- CASE: pipefail_group Line 98 of 'test/runtime-errors.sh' echo hi | { cat; sh -c 'exit 42'; } | wc ^~ [7019] '' command exited with status 42 1 1 3 *** Error has no source location info *** [7017] 'Pipeline' exited with status 42 STATUS: 42 -------- CASE: pipefail_subshell Line 106 of 'test/runtime-errors.sh' echo hi | (cat; sh -c 'exit 42') | wc ^~ [7027] '' command exited with status 42 *** Error has no source location info *** [7025] 'Subshell' exited with status 42 1 1 3 *** Error has no source location info *** [7023] 'Pipeline' exited with status 42 STATUS: 42 -------- CASE: pipefail_func Line 89 of 'test/runtime-errors.sh' echo hi | f | wc ^ [7032] '' command exited with status 42 1 1 3 *** Error has no source location info *** [7030] 'Pipeline' exited with status 42 STATUS: 42 -------- CASE: pipefail_while Line 118 of 'test/runtime-errors.sh' sh -c 'exit 42' ^~ [7037] '' command exited with status 42 2 6 12 *** Error has no source location info *** [7035] 'Pipeline' exited with status 42 STATUS: 42 -------- CASE: nonexistent Unexpected error in execvpe('nonexistent', ['nonexistent'], ...): [Errno 2] No such file or directory STATUS: 127 -------- CASE: nounset Line 189 of 'test/runtime-errors.sh' echo $x ^~ Undefined variable 'x' STATUS: 1 -------- CASE: nounset_arith *** Error has no source location info *** Undefined variable 'x' STATUS: 1 -------- CASE: divzero Line 206 of 'test/runtime-errors.sh' echo $(( 1 / 0 )) ^ Divide by zero STATUS: 1 -------- CASE: divzero_var *** Error has no source location info *** Divide by zero (name) STATUS: 1 -------- CASE: string_to_int_arith osh warning: Invalid integer constant 'ZZZ' 5 *** Error has no source location info *** Invalid integer constant 'ZZZ' STATUS: 1 -------- CASE: string_to_hex osh warning: Invalid hex constant '0xGG' 1 SHOULD NOT GET HERE STATUS: 0 -------- CASE: string_to_octal osh warning: Invalid octal constant '018' 1 SHOULD NOT GET HERE STATUS: 0 -------- CASE: string_to_intbase osh warning: Digits 'GG' out of range for base 16 0 SHOULD NOT GET HERE STATUS: 0 -------- CASE: string_to_int_bool osh warning: Invalid integer constant 'a' *** Error has no source location info *** Invalid integer constant 'a' STATUS: 1