Results for vars-special.test.sh

statusoshosh_.pyosh_.cc
pass 25228
FAIL 6923
total313131
caseoshosh_.pyosh_.ccdescription
0pass pass FAIL $PWD is set
details
1pass pass FAIL $PWD is not only set, but exported
details
2pass pass FAIL $PATH is set if unset at startup
details
3pass pass FAIL $HOME is NOT set
details
4pass FAIL FAIL $1 .. $9 are scoped, while $0 is not
detailsdetails
5pass pass pass $?
6pass pass pass $#
7FAIL FAIL FAIL $_
detailsdetailsdetails
8pass pass FAIL $$ looks like a PID
details
9pass pass FAIL $$ doesn't change with subshell or command sub
details
10pass pass FAIL $BASHPID DOES change with subshell and command sub
details
11pass FAIL FAIL Background PID $! looks like a PID
detailsdetails
12pass pass FAIL $PPID
details
13pass pass FAIL $PIPESTATUS
details
14FAIL FAIL FAIL $RANDOM
detailsdetailsdetails
15pass pass FAIL $UID and $EUID
details
16pass pass pass $OSTYPE is non-empty
17pass pass FAIL $HOSTNAME
details
18pass pass FAIL $LINENO is the current line, not line of function call
details
19pass pass FAIL $LINENO in "bare" redirect arg (bug regression)
details
20pass pass FAIL $LINENO in redirect arg (bug regression)
details
21pass pass pass $LINENO for [[
22pass pass pass $LINENO for ((
23pass pass pass $LINENO in for loop
24pass pass pass $LINENO in other for loops
25FAIL FAIL FAIL $LINENO in for (( loop
detailsdetailsdetails
26pass pass pass $LINENO for assignment
27FAIL FAIL FAIL $_
detailsdetailsdetails
28FAIL FAIL FAIL $_ with assignments, arrays, etc.
detailsdetailsdetails
29FAIL FAIL FAIL $_ undefined
detailsdetailsdetails
30pass FAIL FAIL BASH_VERSION / OIL_VERSION
detailsdetails
55 passed, 0 OK, 0 not implemented, 0 BUG, 38 failed, 0 timeouts, 0 cases skipped
6 failed under osh

Details on runs that didn't PASS

osh_.cc0 $PWD is set

[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
timeout: the monitored command dumped core
osh_.cc1 $PWD is not only set, but exported

[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
timeout: the monitored command dumped core
osh_.cc2 $PATH is set if unset at startup

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

stdout:
stderr: 
osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
timeout: the monitored command dumped core
osh_.cc3 $HOME is NOT set

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

stdout:
stderr: 
osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
timeout: the monitored command dumped core
osh_.py4 $1 .. $9 are scoped, while $0 is not

[osh_.py stdout] Expected 'sh a b\n', got 'sh_eval.py a b\n'

stdout:
sh_eval.py a b
stderr:
osh_.cc4 $1 .. $9 are scoped, while $0 is not

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

stdout:
stderr: 
osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
timeout: the monitored command dumped core
osh7 $_

[osh stdout] Expected u'hi\nhi\n', got 'hi\n\n'

stdout:
hi

stderr:
osh_.py7 $_

[osh_.py stdout] Expected u'hi\nhi\n', got 'hi\n\n'

stdout:
hi

stderr:
osh_.cc7 $_

[osh_.cc stdout] Expected u'hi\nhi\n', got 'hi\n\n'

stdout:
hi

stderr:
dumb_alloc:
	gNumNew = 1879
	gNumDelete = 126
	gMemPos = 64560

	gNumMalloc = 80
	gNumFree = 0
	gMemPos2 = 9840
osh_.cc8 $$ looks like a PID

[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
timeout: the monitored command dumped core
osh_.cc9 $$ doesn't change with subshell or command sub

[osh_.cc stdout] Expected 'subshell OK\ncommand sub OK\n', got 'subshell OK\n'
[osh_.cc status] Expected 3, got -6

stdout:
subshell OK
stderr:
osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
timeout: the monitored command dumped core
osh_.cc10 $BASHPID DOES change with subshell and command sub

[osh_.cc stdout] Expected 'subshell OK\ncommand sub OK\n', got 'subshell OK\n'
[osh_.cc status] Expected 3, got -6

stdout:
subshell OK
stderr:
osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
timeout: the monitored command dumped core
osh_.py11 Background PID $! looks like a PID

[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 68, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 36, in main
    None)
  File "/home/andy/git/oilshell/oil/core/shell_native.py", line 477, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 332, 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 1557, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1395, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 694, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, cmd_st, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 531, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 218, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 125, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 33
osh_.cc11 Background PID $! looks like a PID

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

stdout:
stderr: 
osh_eval.opt.stripped: mycpp/mylib.h:681: V Dict<K, V>::index(K) [with K = int; V = vm::_Builtin*]: Assertion `0' failed.
timeout: the monitored command dumped core
osh_.cc12 $PPID

[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
timeout: the monitored command dumped core
osh_.cc13 $PIPESTATUS

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

stdout:
stderr: 
osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
timeout: the monitored command dumped core
osh14 $RANDOM

[osh status] Expected 0, got 1

stdout:
0
stderr:
osh_.py14 $RANDOM

[osh_.py status] Expected 0, got 1

stdout:
0
stderr:
osh_.cc14 $RANDOM

[osh_.cc status] Expected 0, got -6

stdout:
0
stderr:
osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
timeout: the monitored command dumped core
osh_.cc15 $UID and $EUID

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

stdout:
stderr: 
osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
timeout: the monitored command dumped core
osh_.cc17 $HOSTNAME

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

stdout:
stderr: 
osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
timeout: the monitored command dumped core
osh_.cc18 $LINENO is the current line, not line of function call

[osh_.cc stdout] Expected "1\n['6']\n['3']\n['8']\n", got "['6']\n['3']\n['8']\n1\n"

stdout:
['6']
['3']
['8']
1
stderr:
dumb_alloc:
	gNumNew = 2303
	gNumDelete = 199
	gMemPos = 77696

	gNumMalloc = 205
	gNumFree = 0
	gMemPos2 = 11840
osh_.cc19 $LINENO in "bare" redirect arg (bug regression)

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

stdout:
stderr: 
osh_eval.opt.stripped: cpp/posix.h:111: void posix::dup2(int, int): Assertion `0' failed.
timeout: the monitored command dumped core
osh_.cc20 $LINENO in redirect arg (bug regression)

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

stdout:
stderr: 
osh_eval.opt.stripped: cpp/posix.h:111: void posix::dup2(int, int): Assertion `0' failed.
timeout: the monitored command dumped core
osh25 $LINENO in for (( loop

[osh stdout] Expected 'one\n0\n1\n', got 'one\n0\n1\n2\n'

stdout:
one
0
1
2
stderr:
osh_.py25 $LINENO in for (( loop

[osh_.py stdout] Expected 'one\n0\n1\n', got 'one\n0\n1\n2\n'

stdout:
one
0
1
2
stderr:
osh_.cc25 $LINENO in for (( loop

[osh_.cc stdout] Expected 'one\n0\n1\n', got 'one\n0\n1\n2\n'

stdout:
one
0
1
2
stderr:
dumb_alloc:
	gNumNew = 2181
	gNumDelete = 157
	gMemPos = 73120

	gNumMalloc = 168
	gNumFree = 0
	gMemPos2 = 11248
osh27 $_

[osh stdout] Expected '1\nfoobar\n', got '\n\n'

stdout:

stderr:
osh_.py27 $_

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

stdout:

stderr:
osh_.cc27 $_

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

stdout:

stderr:
dumb_alloc:
	gNumNew = 2012
	gNumDelete = 153
	gMemPos = 67696

	gNumMalloc = 106
	gNumFree = 0
	gMemPos2 = 10256
osh28 $_ with assignments, arrays, etc.

[osh stdout] Expected 'foo\ns:\ns:s=bar\na:\na:a\nflag:a\n', got '\ns:\ns:\na:\na:\nflag:\n'

stdout:
s:
s:
a:
a:
flag:
stderr:
osh_.py28 $_ with assignments, arrays, etc.

[osh_.py stdout] Expected 'foo\ns:\ns:s=bar\na:\na:a\nflag:a\n', got '\ns:\ns:\na:\na:\nflag:\n'

stdout:
s:
s:
a:
a:
flag:
stderr:
osh_.cc28 $_ with assignments, arrays, etc.

[osh_.cc stdout] Expected 'foo\ns:\ns:s=bar\na:\na:a\nflag:a\n', got '\ns:\ns:\na:\na:\nflag:\n'

stdout:
s:
s:
a:
a:
flag:
stderr:
dumb_alloc:
	gNumNew = 3162
	gNumDelete = 374
	gMemPos = 100912

	gNumMalloc = 355
	gNumFree = 0
	gMemPos2 = 14320
osh29 $_ undefined

[osh stdout] Expected 'nonempty=0\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
  echo $_
       ^~
[ -c flag ]:1: fatal: Undefined variable '_'
osh_.py29 $_ undefined

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

stdout:
stderr: 
  echo $_
       ^~
[ -c flag ]:1: fatal: Undefined variable '_'
osh_.cc29 $_ undefined

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

stdout:
stderr: 
osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
timeout: the monitored command dumped core
osh_.py30 BASH_VERSION / OIL_VERSION

[osh_.py stdout] Expected 'matched=0\n', got 'no version\n'

stdout:
no version
stderr:
osh_.cc30 BASH_VERSION / OIL_VERSION

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

stdout:
no version
stderr:
dumb_alloc:
	gNumNew = 2088
	gNumDelete = 190
	gMemPos = 71232

	gNumMalloc = 99
	gNumFree = 0
	gMemPos2 = 10224