Results for builtin-dirs.test.sh

statusoshosh_.pyosh_.cc
pass 1430
FAIL 01114
total141414
caseoshosh_.pyosh_.ccdescription
0pass pass FAIL pushd/popd
details
1pass FAIL FAIL popd usage error
detailsdetails
2pass FAIL FAIL popd returns error on empty directory stack
detailsdetails
3pass pass FAIL dirs builtin
details
4pass FAIL FAIL dirs -c to clear the stack
detailsdetails
5pass FAIL FAIL dirs -v to print numbered stack, one entry per line
detailsdetails
6pass FAIL FAIL dirs -p to print one entry per line
detailsdetails
7pass FAIL FAIL dirs -l to print in long format, no tilde prefix
detailsdetails
8pass FAIL FAIL dirs to print using tilde-prefix format
detailsdetails
9pass FAIL FAIL dirs test converting true home directory to tilde
detailsdetails
10pass pass FAIL dirs don't convert to tilde when $HOME is substring
details
11pass FAIL FAIL dirs tilde test when $HOME is exactly $PWD
detailsdetails
12pass FAIL FAIL dirs test of path alias `..`
detailsdetails
13pass FAIL FAIL dirs test of path alias `.`
detailsdetails
17 passed, 0 OK, 0 not implemented, 0 BUG, 25 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.cc0 pushd/popd

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

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py1 popd usage error

[osh_.py stdout] Expected 'status=2\n', got '/ /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-dirs.test.sh\nstatus=2\n'

stdout:
/ /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-dirs.test.sh
status=2
stderr:
osh_.cc1 popd usage error

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

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:14: Str *os_path::abspath(Str *): Assertion `0' failed.
osh_.py2 popd returns error on empty directory stack

[osh_.py stdout] Expected '1\ndirectory stack\n', got '0\n'

stdout:
0
stderr:
osh_.cc2 popd returns error on empty directory stack

[osh_.cc stdout] Expected '1\ndirectory stack\n', got '0\n'

stdout:
0
stderr:
osh_.cc3 dirs builtin

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

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py4 dirs -c to clear the stack

[osh_.py stdout] Expected '--\n/tmp /\n--\n/tmp\n', got '/tmp /\n--\n/tmp /\n--\n/tmp\n'

stdout:
/tmp /
--
/tmp /
--
/tmp
stderr:
osh_.cc4 dirs -c to clear the stack

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

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py5 dirs -v to print numbered stack, one entry per line

[osh_.py stdout] Expected '--\n 0 /tmp\n 1 /\n--\n 0 /dev\n 1 /tmp\n 2 /\n', got '/tmp /\n--\n 0 /tmp\n 1 /\n/dev /tmp /\n--\n 0 /dev\n 1 /tmp\n 2 /\n'

stdout:
/tmp /
--
 0  /tmp
 1  /
/dev /tmp /
--
 0  /dev
 1  /tmp
 2  /
stderr:
osh_.cc5 dirs -v to print numbered stack, one entry per line

[osh_.cc stdout] Expected '--\n 0 /tmp\n 1 /\n--\n 0 /dev\n 1 /tmp\n 2 /\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py6 dirs -p to print one entry per line

[osh_.py stdout] Expected '--\n/tmp\n/\n--\n/dev\n/tmp\n/\n', got '/tmp /\n--\n/tmp\n/\n/dev /tmp /\n--\n/dev\n/tmp\n/\n'

stdout:
/tmp /
--
/tmp
/
/dev /tmp /
--
/dev
/tmp
/
stderr:
osh_.cc6 dirs -p to print one entry per line

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

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py7 dirs -l to print in long format, no tilde prefix

[osh_.py stdout] Expected '~/oil_test /\n/tmp/oil_test /\n', got "(cmd_value.Argv argv:[mkdir -p '/tmp/oil_test'] arg_spids:[7 9 11])\n~/oil_test /\n~/oil_test /\n/tmp/oil_test /\n"

stdout:
(cmd_value.Argv argv:[mkdir -p '/tmp/oil_test'] arg_spids:[7 9 11])
~/oil_test /
~/oil_test /
/tmp/oil_test /
stderr:
Unhandled SimpleCommand
osh_.cc7 dirs -l to print in long format, no tilde prefix

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

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py8 dirs to print using tilde-prefix format

[osh_.py stdout] Expected '~/oil_test /\n', got "(cmd_value.Argv argv:[mkdir -p '/tmp/oil_test'] arg_spids:[7 9 11])\n~/oil_test /\n~/oil_test /\n"

stdout:
(cmd_value.Argv argv:[mkdir -p '/tmp/oil_test'] arg_spids:[7 9 11])
~/oil_test /
~/oil_test /
stderr:
Unhandled SimpleCommand
osh_.cc8 dirs to print using tilde-prefix format

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

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py9 dirs test converting true home directory to tilde

[osh_.py stdout] Expected '~/oil_test/tmp /\n', got "(cmd_value.Argv argv:[mkdir -p '/tmp/oil_test//tmp'] arg_spids:[7 9 11])\n~/oil_test/tmp /\n~/oil_test/tmp /\n"

stdout:
(cmd_value.Argv argv:[mkdir -p '/tmp/oil_test//tmp'] arg_spids:[7 9 11])
~/oil_test/tmp /
~/oil_test/tmp /
stderr:
Unhandled SimpleCommand
osh_.cc9 dirs test converting true home directory to tilde

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

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.cc10 dirs don't convert to tilde when $HOME is substring

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

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py11 dirs tilde test when $HOME is exactly $PWD

[osh_.py stdout] Expected '~ /\n~ /\n', got "(cmd_value.Argv argv:[mkdir -p '/tmp/oil_test'] arg_spids:[4 6 8])\n~ /\n~ /\n"

stdout:
(cmd_value.Argv argv:[mkdir -p '/tmp/oil_test'] arg_spids:[4 6 8])
~ /
~ /
stderr:
Unhandled SimpleCommand
osh_.cc11 dirs tilde test when $HOME is exactly $PWD

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

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py12 dirs test of path alias `..`

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

stdout:
/ /tmp
/ /tmp
stderr:
osh_.cc12 dirs test of path alias `..`

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

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py13 dirs test of path alias `.`

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

stdout:
/tmp /tmp
/tmp /tmp
stderr:
osh_.cc13 dirs test of path alias `.`

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

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.