Results for loop.test.sh

statusoshosh_.pyosh_.cc
pass 232216
ok 111
FAIL 017
total242424
caseoshosh_.pyosh_.ccdescription
0pass pass pass implicit for loop
1pass pass pass empty for loop (has "in")
2pass pass pass for loop with invalid identifier
3pass pass pass Tilde expansion within for loop
4pass pass pass Brace Expansion within Array
5pass pass pass using loop var outside loop
6pass pass pass continue
7pass pass pass break
8ok ok ok dynamic control flow (KNOWN INCOMPATIBILITY)
detailsdetailsdetails
9pass pass pass while in while condition
10pass pass FAIL while in pipe
details
11pass pass FAIL while in pipe with subshell
details
12pass pass pass until loop
13pass pass pass continue at top level
14pass pass FAIL continue in subshell
details
15pass pass FAIL continue in subshell aborts with errexit
details
16pass pass pass bad arg to break
17pass pass pass too many args to continue
18pass pass pass break in condition of loop
19pass pass pass break in condition of nested loop
20pass pass pass return within eval
21pass pass FAIL break/continue within eval
details
22pass FAIL FAIL break/continue within source
detailsdetails
23pass pass FAIL top-level break/continue/return (without strict_control_flow)
details
61 passed, 3 OK, 0 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh8 dynamic control flow (KNOWN INCOMPATIBILITY)

stdout:
1
2
3
stderr:
    $b
    ^~
[ stdin ]:4: 'break' not found
    $b
    ^~
[ stdin ]:4: 'break' not found
    $b
    ^~
[ stdin ]:4: 'break' not found
osh_.py8 dynamic control flow (KNOWN INCOMPATIBILITY)

stdout:
1
2
3
stderr:
    $b
    ^~
[ stdin ]:4: 'break' not found
    $b
    ^~
[ stdin ]:4: 'break' not found
    $b
    ^~
[ stdin ]:4: 'break' not found
osh_.cc8 dynamic control flow (KNOWN INCOMPATIBILITY)

stdout:
1
2
3
stderr:
    $b
    ^~
[ stdin ]:4: 'break' not found
    $b
    ^~
[ stdin ]:4: 'break' not found
    $b
    ^~
[ stdin ]:4: 'break' not found

dumb_alloc:
	gNumNew = 2451
	gNumDelete = 195
	gMemPos = 82240

	gNumMalloc = 221
	gNumFree = 0
	gMemPos2 = 12720
osh_.cc10 while in pipe

[osh_.cc stdout] Expected 'status=0\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc11 while in pipe with subshell

[osh_.cc stdout] Expected '3\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc14 continue in subshell

[osh_.cc stdout] Expected '> 1\nsubshell status=1\n. 1\n> 2\nsubshell status=1\n. 2\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc15 continue in subshell aborts with errexit

[osh_.cc stdout] Expected '> 1\n', got ''
[osh_.cc status] Expected 1, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc21 break/continue within eval

[osh_.cc stdout] Expected '1\n3\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.py22 break/continue within source

[osh_.py stdout] Expected '1\n3\ndone\n', got '1\n'
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
1
stderr:
Traceback (most recent call last):
  File "/home/travis/build/oilshell/oil/bin/osh_eval.py", line 68, in <module>
    sys.exit(main(sys.argv))
  File "/home/travis/build/oilshell/oil/bin/osh_eval.py", line 36, in main
    None)
  File "/home/travis/build/oilshell/oil/core/shell_native.py", line 476, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/travis/build/oilshell/oil/core/main_loop.py", line 324, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1498, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1345, in _Execute
    status, check_errexit = self._Dispatch(node, pipeline_st)
  File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 623, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 477, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/travis/build/oilshell/oil/core/executor.py", line 224, in RunSimpleCommand
    status = self.cmd_ev.RunProc(proc_node, argv[1:])
  File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1642, in RunProc
    status = self._Execute(proc.body)
  File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1345, in _Execute
    status, check_errexit = self._Dispatch(node, pipeline_st)
  File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 998, in _Dispatch
    status = self._ExecuteList(node.children)
  File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1401, in _ExecuteList
    status = self._Execute(child)
  File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1345, in _Execute
    status, check_errexit = self._Dispatch(node, pipeline_st)
  File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1091, in _Dispatch
    status = self._Execute(node.body)  # last one wins
  File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1345, in _Execute
    status, check_errexit = self._Dispatch(node, pipeline_st)
  File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 993, in _Dispatch
    status = self._ExecuteList(node.children)
  File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1401, in _ExecuteList
    status = self._Execute(child)
  File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1345, in _Execute
    status, check_errexit = self._Dispatch(node, pipeline_st)
  File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1242, in _Dispatch
    status = self._ExecuteList(if_arm.action)
  File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1401, in _ExecuteList
    status = self._Execute(child)
  File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1345, in _Execute
    status, check_errexit = self._Dispatch(node, pipeline_st)
  File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 623, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 477, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/travis/build/oilshell/oil/core/executor.py", line 193, in RunSimpleCommand
    status = self.RunBuiltin(builtin_id, cmd_val)
  File "/home/travis/build/oilshell/oil/core/executor.py", line 121, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 2
osh_.cc22 break/continue within source

[osh_.cc stdout] Expected '1\n3\ndone\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc23 top-level break/continue/return (without strict_control_flow)

[osh_.cc stdout] Expected 'break=0\ncontinue=0\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str*): Assertion `0' failed.