status | osh | osh-cpp | |
pass | 21 | 16 | |
FAIL | 1 | 6 | |
total | 22 | 22 | |
case | osh | osh-cpp | description |
0 | pass | pass | cd and $PWD |
1 | FAIL | FAIL | cd BAD/.. |
details | details | ||
2 | pass | pass | cd with 2 or more args |
3 | pass | pass | cd - without OLDPWD |
4 | pass | pass | $OLDPWD |
5 | pass | pass | pwd |
6 | pass | FAIL | pwd after cd .. |
details | |||
7 | pass | FAIL | pwd with symlink and -P |
details | |||
8 | pass | pass | setting $PWD doesn't affect the value of 'pwd' builtin |
9 | pass | pass | unset PWD; then pwd |
10 | pass | pass | 'unset PWD; pwd' before any cd (tickles a rare corner case) |
11 | pass | pass | lie about PWD; pwd before any cd |
12 | pass | pass | remove pwd dir |
13 | pass | FAIL | pwd in symlinked dir on shell initialization |
details | |||
14 | pass | pass | Test the current directory after 'cd ..' involving symlinks |
15 | pass | FAIL | cd with no arguments |
details | |||
16 | pass | pass | cd to nonexistent dir |
17 | pass | FAIL | cd away from dir that was deleted |
details | |||
18 | pass | pass | cd permits double bare dash |
19 | pass | pass | cd to symlink with -L and -P |
20 | pass | pass | cd to relative path with -L and -P |
21 | pass | pass | unset PWD; cd /tmp is allowed (regression) |
37 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh | 1 cd BAD/.. [osh stdout] Expected 'status=1\n', got 'status=0\n' stdout: status=0stderr: |
osh-cpp | 1 cd BAD/.. [osh-cpp stdout] Expected 'status=1\n', got 'status=0\n' stdout: status=0stderr: |
osh-cpp | 6 pwd after cd .. [osh-cpp stdout] Expected 'dir-two\ndir-one\n', got '' [osh-cpp status] Expected 0, got -6 stdout: stderr: terminate called after throwing an instance of 'IndexError*' timeout: the monitored command dumped core |
osh-cpp | 7 pwd with symlink and -P [osh-cpp stdout] Expected 'pwd:\nsymlink\npwd -P:\ntarget\n', got 'pwd:\n' [osh-cpp status] Expected 0, got -6 stdout: pwd:stderr: terminate called after throwing an instance of 'IndexError*' timeout: the monitored command dumped core |
osh-cpp | 13 pwd in symlinked dir on shell initialization [osh-cpp stdout] Expected 'symlink\ntarget\n', got '' [osh-cpp stderr] Expected u'', got "terminate called after throwing an instance of 'IndexError*'\nterminate called after throwing an instance of 'IndexError*'\n" [osh-cpp status] Expected 0, got 134 stdout: stderr: terminate called after throwing an instance of 'IndexError*' terminate called after throwing an instance of 'IndexError*' |
osh-cpp | 15 cd with no arguments [osh-cpp stdout] Expected 'OK\n', got '' [osh-cpp status] Expected 0, got -6 stdout: stderr: terminate called after throwing an instance of 'IndexError*' timeout: the monitored command dumped core |
osh-cpp | 17 cd away from dir that was deleted [osh-cpp stdout] Expected 'cd-nonexistent\nstatus=0\n', got '' [osh-cpp status] Expected 0, got -6 stdout: stderr: terminate called after throwing an instance of 'IndexError*' timeout: the monitored command dumped core |