Results for loop.test.sh

statusoshosh-cpp
pass 2526
ok 11
FAIL 10
total2727
caseoshosh-cppdescription
0pass pass implicit for loop
1FAIL pass empty for loop (has "in")
details
2pass pass for loop with invalid identifier
3pass pass the word 'in' can be the loop variable
4pass pass Tilde expansion within for loop
5pass pass Brace Expansion within Array
6pass pass using loop var outside loop
7pass pass continue
8pass pass break
9ok ok dynamic control flow (KNOWN INCOMPATIBILITY)
detailsdetails
10pass pass while in while condition
11pass pass while in pipe
12pass pass while in pipe with subshell
13pass pass until loop
14pass pass continue at top level
15pass pass continue in subshell
16pass pass continue in subshell aborts with errexit
17pass pass bad arg to break
18pass pass too many args to continue
19pass pass break in condition of loop
20pass pass break in condition of nested loop
21pass pass return within eval
22pass pass break/continue within eval
23pass pass break/continue within source
24pass pass top-level break/continue/return (without strict_control_flow)
25pass pass multi-level break with argument
26pass pass multi-level continue
51 passed, 2 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh1 empty for loop (has "in")

[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 198, in <module>
    sys.exit(main(sys.argv))
  File "/home/uke/oil/bin/oils_for_unix.py", line 170, in main
    return AppBundleMain(argv)
  File "/home/uke/oil/bin/oils_for_unix.py", line 140, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/uke/oil/core/shell.py", line 1125, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/uke/oil/core/main_loop.py", line 364, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/uke/oil/osh/cmd_eval.py", line 1955, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/uke/oil/osh/cmd_eval.py", line 1777, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/uke/oil/osh/cmd_eval.py", line 1674, in _Dispatch
    status = self._DoForEach(node)
  File "/home/uke/oil/osh/cmd_eval.py", line 1212, in _DoForEach
    assert iter_list, iter_list
AssertionError: []
osh9 dynamic control flow (KNOWN INCOMPATIBILITY)

stdout:
1
2
3
stderr:
    $b
    ^~
[ stdin ]:4: 'break' not found (OILS-ERR-100)
    $b
    ^~
[ stdin ]:4: 'break' not found (OILS-ERR-100)
    $b
    ^~
[ stdin ]:4: 'break' not found (OILS-ERR-100)
osh-cpp9 dynamic control flow (KNOWN INCOMPATIBILITY)

stdout:
1
2
3
stderr:
    $b
    ^~
[ stdin ]:4: 'break' not found (OILS-ERR-100)
    $b
    ^~
[ stdin ]:4: 'break' not found (OILS-ERR-100)
    $b
    ^~
[ stdin ]:4: 'break' not found (OILS-ERR-100)