Results for loop.test.sh

statusoshosh_.pyosh_.cc
pass 231616
ok 100
FAIL 088
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 FAIL Tilde expansion within for loop
details
4pass pass pass Brace Expansion within Array
5pass pass pass using loop var outside loop
6pass pass pass continue
7pass pass pass break
8ok FAIL FAIL dynamic control flow (KNOWN INCOMPATIBILITY)
detailsdetailsdetails
9pass pass pass while in while condition
10pass FAIL pass while in pipe
details
11pass FAIL FAIL while in pipe with subshell
detailsdetails
12pass pass pass until loop
13pass pass pass continue at top level
14pass FAIL FAIL continue in subshell
detailsdetails
15pass FAIL FAIL continue in subshell aborts with errexit
detailsdetails
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 FAIL FAIL break/continue within eval
detailsdetails
22pass FAIL FAIL break/continue within source
detailsdetails
23pass FAIL FAIL top-level break/continue/return (without strict_control_flow)
detailsdetails
55 passed, 1 OK, 0 not implemented, 0 BUG, 16 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.cc3 Tilde expansion within for loop

[osh_.cc stdout] Expected '/home/bob/src\n/home/bob/git\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/core_passwd.h:16: Str *passwd::GetHomeDir(syntax_asdl::Token *): Assertion `0' failed.
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)

[osh_.py status] Expected 127, got 1

stdout:
1
2
3
stderr:
Error running ['break']: [Errno 2] No such file or directory
Error running ['break']: [Errno 2] No such file or directory
Error running ['break']: [Errno 2] No such file or directory
osh_.cc8 dynamic control flow (KNOWN INCOMPATIBILITY)

[osh_.cc stdout] Expected '1\n2\n3\n', got '1\n(cmd_value.Argv argv:[break] arg_spids:[24])\n2\n(cmd_value.Argv argv:[break] arg_spids:[24])\n3\n(cmd_value.Argv argv:[break] arg_spids:[24])\n'
[osh_.cc status] Expected 127, got 0

stdout:
1
(cmd_value.Argv argv:[break] arg_spids:[24])
2
(cmd_value.Argv argv:[break] arg_spids:[24])
3
(cmd_value.Argv argv:[break] arg_spids:[24])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_.py10 while in pipe

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

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, 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 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 837, in _Dispatch
    val = self.word_ev.EvalRhsWord(pair.rhs)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord
    return self.EvalWordToString(w)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString
    self._EvalWordPart(p, part_vals, quoted=False)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.py11 while in pipe with subshell

[osh_.py stdout] Expected '3\n', got ''

stdout:
stderr: 
osh_.cc11 while in pipe with subshell

[osh_.cc stdout] Expected '3\n', got ''

stdout:
stderr: 
osh_.py14 continue in subshell

[osh_.py stdout] Expected '> 1\nsubshell status=1\n. 1\n> 2\nsubshell status=1\n. 2\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, 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 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1058, in _Dispatch
    iter_list = self.word_ev.EvalWordSequence(words)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1922, in EvalWordSequence
    UP_cmd_val = self.EvalWordSequence2(words)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1868, in EvalWordSequence2
    self._EvalWordToParts(w, False, part_vals)  # not double quoted
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts
    self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc14 continue in subshell

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

stdout:
stderr: 
osh_.py15 continue in subshell aborts with errexit

[osh_.py stdout] Expected '> 1\n', got ''
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, 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 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1058, in _Dispatch
    iter_list = self.word_ev.EvalWordSequence(words)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1922, in EvalWordSequence
    UP_cmd_val = self.EvalWordSequence2(words)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1868, in EvalWordSequence2
    self._EvalWordToParts(w, False, part_vals)  # not double quoted
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts
    self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc15 continue in subshell aborts with errexit

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

stdout:
stderr: 
osh_.py21 break/continue within eval

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

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, 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 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 383, in RunSimpleCommand
    status = self.cmd_ev.RunProc(func_node, argv[1:])
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1539, in RunProc
    status = self._Execute(func_node.body)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 968, in _Dispatch
    status = self._ExecuteList(node.children)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1364, in _ExecuteList
    status = self._Execute(child)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1058, in _Dispatch
    iter_list = self.word_ev.EvalWordSequence(words)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1922, in EvalWordSequence
    UP_cmd_val = self.EvalWordSequence2(words)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1868, in EvalWordSequence2
    self._EvalWordToParts(w, False, part_vals)  # not double quoted
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts
    self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc21 break/continue within eval

[osh_.cc stdout] Expected '1\n3\n', got ''

stdout:
stderr: 
osh_.py22 break/continue within source

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

stdout:
stderr: 
[??? no location ???] $HOME isn't defined
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, 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 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 383, in RunSimpleCommand
    status = self.cmd_ev.RunProc(func_node, argv[1:])
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1539, in RunProc
    status = self._Execute(func_node.body)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 968, in _Dispatch
    status = self._ExecuteList(node.children)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1364, in _ExecuteList
    status = self._Execute(child)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1058, in _Dispatch
    iter_list = self.word_ev.EvalWordSequence(words)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1922, in EvalWordSequence
    UP_cmd_val = self.EvalWordSequence2(words)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1868, in EvalWordSequence2
    self._EvalWordToParts(w, False, part_vals)  # not double quoted
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts
    self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc22 break/continue within source

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

stdout:
stderr: 
[??? no location ???] $HOME isn't defined
osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.
osh_.py23 top-level break/continue/return (without strict_control_flow)

[osh_.py stdout] Expected 'break=0\ncontinue=0\n', got ''
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
Error running ['-c', 'break; echo break=$?']: [Errno 2] No such file or directory
Error running ['-c', 'continue; echo continue=$?']: [Errno 2] No such file or directory
Error running ['-c', 'return; echo return=$?']: [Errno 2] No such file or directory
osh_.cc23 top-level break/continue/return (without strict_control_flow)

[osh_.cc stdout] Expected 'break=0\ncontinue=0\n', got "(cmd_value.Argv argv:[-c 'break; echo break=$?'] arg_spids:[2 4])\n(cmd_value.Argv argv:[-c 'continue; echo continue=$?'] arg_spids:[10 12])\n(cmd_value.Argv argv:[-c 'return; echo return=$?'] arg_spids:[18 20])\n"

stdout:
(cmd_value.Argv argv:[-c 'break; echo break=$?'] arg_spids:[2 4])
(cmd_value.Argv argv:[-c 'continue; echo continue=$?'] arg_spids:[10 12])
(cmd_value.Argv argv:[-c 'return; echo return=$?'] arg_spids:[18 20])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand