Results for prompt.test.sh

statusoshosh_.pyosh_.cc
pass 18140
FAIL 1519
total191919
caseoshosh_.pyosh_.ccdescription
0FAIL FAIL FAIL sh -i
detailsdetailsdetails
1pass pass FAIL \[\] are non-printing
details
2pass pass FAIL literal escapes
details
3pass pass FAIL special case for $
details
4pass pass FAIL PS1 evaluation order
details
5pass pass FAIL PS1 evaluation order 2
details
6pass pass FAIL \1004
details
7pass pass FAIL \001 octal literals are supported
details
8pass pass FAIL \555 is beyond max octal byte of \377 and wrapped to m
details
9pass pass FAIL \x55 hex literals not supported
details
10pass pass FAIL Single backslash
details
11pass pass FAIL Escaped backslash
details
12pass pass FAIL \0001 octal literals are not supported
details
13pass FAIL FAIL \u0001 unicode literals not supported
detailsdetails
14pass pass FAIL constant string
details
15pass FAIL FAIL hostname
detailsdetails
16pass FAIL FAIL username
detailsdetails
17pass pass FAIL current working dir
details
18pass FAIL FAIL \W is basename of working dir
detailsdetails
32 passed, 0 OK, 0 not implemented, 0 BUG, 25 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh0 sh -i

[osh stdout] Expected 'foo\n', got '$ foo\n$ ^D\n'
[osh stderr] Expected '$ echo foo\n$ exit\n', got ''

stdout:
$ foo
$ ^D
stderr:
osh_.py0 sh -i

[osh_.py stdout] Expected 'foo\n', got ''
[osh_.py stderr] Expected '$ echo foo\n$ exit\n', got ''

stdout:
stderr: 
osh_.cc0 sh -i

[osh_.cc stdout] Expected 'foo\n', got ''
[osh_.cc stderr] Expected '$ echo foo\n$ exit\n', got ''

stdout:
stderr: 
osh_.cc1 \[\] are non-printing

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

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, List<Tuple2<int, Str *> *> *>::index(K) [K = Str *, V = List<Tuple2<int, Str *> *> *]: Assertion `0' failed.
osh_.cc2 literal escapes

[osh_.cc stdout] Expected u'\x07\x1b\r\n\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, List<Tuple2<int, Str *> *> *>::index(K) [K = Str *, V = List<Tuple2<int, Str *> *> *]: Assertion `0' failed.
osh_.cc3 special case for $

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

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, List<Tuple2<int, Str *> *> *>::index(K) [K = Str *, V = List<Tuple2<int, Str *> *> *]: Assertion `0' failed.
osh_.cc4 PS1 evaluation order

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

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, List<Tuple2<int, Str *> *> *>::index(K) [K = Str *, V = List<Tuple2<int, Str *> *> *]: Assertion `0' failed.
osh_.cc5 PS1 evaluation order 2

[osh_.cc stdout] Expected 'status=0\n', got "(cmd_value.Argv argv:[mkdir -p '/$foo'] arg_spids:[13 15 17])\n"
[osh_.cc status] Expected 0, got -6

stdout:
(cmd_value.Argv argv:[mkdir -p '/$foo'] arg_spids:[13 15 17])
stderr:
Unhandled SimpleCommand
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.cc6 \1004

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

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, List<Tuple2<int, Str *> *> *>::index(K) [K = Str *, V = List<Tuple2<int, Str *> *> *]: Assertion `0' failed.
osh_.cc7 \001 octal literals are supported

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

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, List<Tuple2<int, Str *> *> *>::index(K) [K = Str *, V = List<Tuple2<int, Str *> *> *]: Assertion `0' failed.
osh_.cc8 \555 is beyond max octal byte of \377 and wrapped to m

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

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, List<Tuple2<int, Str *> *> *>::index(K) [K = Str *, V = List<Tuple2<int, Str *> *> *]: Assertion `0' failed.
osh_.cc9 \x55 hex literals not supported

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

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, List<Tuple2<int, Str *> *> *>::index(K) [K = Str *, V = List<Tuple2<int, Str *> *> *]: Assertion `0' failed.
osh_.cc10 Single backslash

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

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, List<Tuple2<int, Str *> *> *>::index(K) [K = Str *, V = List<Tuple2<int, Str *> *> *]: Assertion `0' failed.
osh_.cc11 Escaped backslash

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

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, List<Tuple2<int, Str *> *> *>::index(K) [K = Str *, V = List<Tuple2<int, Str *> *> *]: Assertion `0' failed.
osh_.cc12 \0001 octal literals are not supported

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

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, List<Tuple2<int, Str *> *> *>::index(K) [K = Str *, V = List<Tuple2<int, Str *> *> *]: Assertion `0' failed.
osh_.py13 \u0001 unicode literals not supported

[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_.cc13 \u0001 unicode literals not supported

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

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, List<Tuple2<int, Str *> *> *>::index(K) [K = Str *, V = List<Tuple2<int, Str *> *> *]: Assertion `0' failed.
osh_.cc14 constant string

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

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, List<Tuple2<int, Str *> *> *>::index(K) [K = Str *, V = List<Tuple2<int, Str *> *> *]: Assertion `0' failed.
osh_.py15 hostname

[osh_.py stdout] Expected 'status=0\nstatus=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 547, in _Dispatch
    cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True)
  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 1326, in _EvalWordPart
    self._EvalDoubleQuoted(part.parts, part_vals)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 821, in _EvalDoubleQuoted
    self._EvalWordPart(p, part_vals, quoted=True)
  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 hostname

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

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, List<Tuple2<int, Str *> *> *>::index(K) [K = Str *, V = List<Tuple2<int, Str *> *> *]: Assertion `0' failed.
osh_.py16 username

[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_.cc16 username

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

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, List<Tuple2<int, Str *> *> *>::index(K) [K = Str *, V = List<Tuple2<int, Str *> *> *]: Assertion `0' failed.
osh_.cc17 current working dir

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

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, List<Tuple2<int, Str *> *> *>::index(K) [K = Str *, V = List<Tuple2<int, Str *> *> *]: Assertion `0' failed.
osh_.py18 \W is basename of working dir

[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 547, in _Dispatch
    cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True)
  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 1326, in _EvalWordPart
    self._EvalDoubleQuoted(part.parts, part_vals)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 821, in _EvalDoubleQuoted
    self._EvalWordPart(p, part_vals, quoted=True)
  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_.cc18 \W is basename of working dir

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

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, List<Tuple2<int, Str *> *> *>::index(K) [K = Str *, V = List<Tuple2<int, Str *> *> *]: Assertion `0' failed.