Results for prompt.test.sh

statusoshosh_.pyosh_.cc
pass 242215
ok 111
FAIL 029
total252525
caseoshosh_.pyosh_.ccdescription
0pass FAIL FAIL sh -i
detailsdetails
1pass pass pass \[\] are non-printing
2pass pass pass literal escapes
3pass pass FAIL special case for $
details
4pass pass pass PS1 evaluation order
5pass pass pass PS1 evaluation order 2
6pass pass pass \1004
7pass pass pass \001 octal literals are supported
8pass pass pass \555 is beyond max octal byte of \377 and wrapped to m
9pass pass pass \x55 hex literals not supported
10pass pass pass Single backslash
11pass pass pass Escaped backslash
12pass pass pass \0001 octal literals are not supported
13pass pass FAIL \u0001 unicode literals not supported
details
14pass pass pass constant string
15pass pass pass hostname
16pass pass FAIL username
details
17pass pass pass current working dir
18pass pass pass \W is basename of working dir
19pass pass FAIL \A for 24 hour time
details
20pass pass FAIL \D{%H:%M} for strftime
details
21pass pass FAIL \D{} for locale specific strftime
details
22pass pass FAIL \s and \v for shell and version
details
23ok ok ok @P with array
detailsdetailsdetails
24pass FAIL FAIL default PS1
detailsdetails
61 passed, 3 OK, 0 not implemented, 0 BUG, 11 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.py0 sh -i

[osh_.py stdout] Expected 'match=0\n', got 'match=1\n'

stdout:
match=1
stderr:
osh_.cc0 sh -i

[osh_.cc stdout] Expected 'match=0\n', got 'match=1\n'

stdout:
match=1
stderr:
osh_.cc3 special case for $

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

stdout:
$
$
$
$
\$
stderr:
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.stripped: cpp/core_pyos.h:35: Str* pyos::GetUserName(int): Assertion `0' failed.
timeout: the monitored command dumped core
osh_.cc16 username

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

stdout:
stderr: 
osh_eval.stripped: cpp/core_pyos.h:35: Str* pyos::GetUserName(int): Assertion `0' failed.
timeout: the monitored command dumped core
osh_.cc19 \A for 24 hour time

[osh_.cc stdout] Expected 'matched=0\n', got 'matched=1\n'

stdout:
matched=1
stderr:
osh_eval.stripped: cpp/time_.h:21: int time_::localtime(int): Assertion `0' failed.
osh_.cc20 \D{%H:%M} for strftime

[osh_.cc stdout] Expected 'matched=0\nmatched=0\n', got 'matched=1\nmatched=1\n'

stdout:
matched=1
matched=1
stderr:
osh_eval.stripped: cpp/time_.h:21: int time_::localtime(int): Assertion `0' failed.
osh_eval.stripped: cpp/time_.h:21: int time_::localtime(int): Assertion `0' failed.
osh_.cc21 \D{} for locale specific strftime

[osh_.cc stdout] Expected 'matched=0\n', got 'matched=1\n'

stdout:
matched=1
stderr:
osh_eval.stripped: cpp/time_.h:21: int time_::localtime(int): Assertion `0' failed.
osh_.cc22 \s and \v for shell and version

[osh_.cc stdout] Expected 'match=0\nmatch=0\n', got 'match=0\nmatch=1\n'

stdout:
match=0
match=1
stderr:
osh23 @P with array

stdout:
status=1
status=1
status=1
stderr:
  echo ${@@P}
  ^~~~
[ -c flag ]:1: fatal: Can't use @P on value.MaybeStrArray
  echo ${*@P}
  ^~~~
[ -c flag ]:1: fatal: Can't use @P on value.MaybeStrArray
  a=(x y); echo ${a@P}
                ^~
[ -c flag ]:1: fatal: Array 'a' can't be referred to as a scalar (without @ or *)
osh_.py23 @P with array

stdout:
status=1
status=1
status=1
stderr:
  echo ${@@P}
  ^~~~
[ -c flag ]:1: fatal: Can't use @P on value.MaybeStrArray
  echo ${*@P}
  ^~~~
[ -c flag ]:1: fatal: Can't use @P on value.MaybeStrArray
  a=(x y); echo ${a@P}
                ^~
[ -c flag ]:1: fatal: Array 'a' can't be referred to as a scalar (without @ or *)
osh_.cc23 @P with array

stdout:
status=1
status=1
status=1
stderr:
  echo ${@@P}
  ^~~~
[ -c flag ]:1: fatal: Can't use @P on value.MaybeStrArray
  echo ${*@P}
  ^~~~
[ -c flag ]:1: fatal: Can't use @P on value.MaybeStrArray
  a=(x y); echo ${a@P}
           ^~~~
[ -c flag ]:1: fatal: Array 'a' can't be referred to as a scalar (without @ or *)
osh_.py24 default PS1

[osh_.py stdout] Expected '_\\s-\\v\\$ _\n', got ''
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
osh fatal error: 
osh_.cc24 default PS1

[osh_.cc stdout] Expected '_\\s-\\v\\$ _\n', got ''
[osh_.cc status] Expected 0, got 129

stdout:
stderr: 
terminate called after throwing an instance of 'NotImplementedError*'