Results for strict-options.test.sh

statusoshosh_.pyosh_.cc
pass 141311
FAIL 013
total141414
caseoshosh_.pyosh_.ccdescription
0pass pass pass strict_arith option
1pass FAIL FAIL Sourcing a script that returns at the top level
detailsdetails
2pass pass pass top level control flow
3pass pass FAIL errexit and top-level control flow
details
4pass pass pass shopt -s strict_control_flow
5pass pass pass return at top level is an error
6pass pass pass continue at top level is NOT an error
7pass pass pass break at top level is NOT an error
8pass pass FAIL empty argv WITHOUT strict_argv
details
9pass pass pass empty argv WITH strict_argv
10pass pass pass Arrays are incorrectly compared, but strict_array prevents it
11pass pass pass automatically creating arrays WITHOUT strict_array
12pass pass pass automatically creating arrays are INDEXED, not associative
13pass pass pass simple_eval_builtin
38 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.py1 Sourcing a script that returns at the top level

[osh_.py stdout] Expected 'one\nreturn-helper.sh\n42\ntwo\n', got 'one\n'
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
one
stderr:
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 66, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 34, in main
    None)
  File "/home/andy/git/oilshell/oil/core/shell_native.py", line 486, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 332, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1643, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1481, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 709, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, cmd_st, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 548, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 192, in RunSimpleCommand
    status = self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 129, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 2
osh_.cc1 Sourcing a script that returns at the top level

[osh_.cc stdout] Expected 'one\nreturn-helper.sh\n42\ntwo\n', got 'one\n'
[osh_.cc status] Expected 0, got -6

stdout:
one
stderr:
terminate called after throwing an instance of 'KeyError*'
timeout: the monitored command dumped core
osh_.cc3 errexit and top-level control flow

[osh_.cc status] Expected 2, got 1

stdout:
SUBSHELL
stderr:
osh_.cc8 empty argv WITHOUT strict_argv

[osh_.cc stdout] Expected 'status=0\nVarSub\nCommandSub\nVarSub FAILED\nCommandSub FAILED\n', got 'status=0\nVarSub\nCommandSub\nVarSub FAILED\nCommandSub FAILED\nCommandSub\nVarSub\nCommandSub FAILED\nCommandSub\n'

stdout:
status=0
VarSub
CommandSub
VarSub FAILED
CommandSub FAILED
CommandSub
VarSub
CommandSub FAILED
CommandSub
stderr: