Results for builtin-cd.test.sh

statusoshosh-cpp
pass 2727
FAIL 33
total3030
caseoshosh-cppdescription
0pass pass cd and $PWD
1FAIL FAIL cd BAD/..
detailsdetails
2pass pass cd with 2 or more args - with strict_arg_parse
3pass pass cd with 2 or more args is allowed (strict_arg_parse disabled)
4pass pass cd - without OLDPWD
5pass pass $OLDPWD
6pass pass pwd
7pass pass pwd after cd ..
8pass pass pwd with symlink and -P
9pass pass setting $PWD doesn't affect the value of 'pwd' builtin
10pass pass unset PWD; then pwd
11pass pass 'unset PWD; pwd' before any cd (tickles a rare corner case)
12pass pass lie about PWD; pwd before any cd
13pass pass remove pwd dir
14pass pass pwd in symlinked dir on shell initialization
15pass pass Test the current directory after 'cd ..' involving symlinks
16pass pass cd with no arguments
17pass pass cd to nonexistent dir
18pass pass cd away from dir that was deleted
19pass pass cd permits double bare dash
20pass pass cd to symlink with -L and -P
21pass pass cd to relative path with -L and -P
22pass pass unset PWD; cd /tmp is allowed (regression)
23FAIL FAIL CDPATH is respected
detailsdetails
24pass pass Change directory in non-shell parent process (make or Python)
25pass pass What happens when inherited $PWD and current dir disagree?
26FAIL FAIL Survey of getcwd() syscall
detailsdetails
27pass pass chdir is a synonym for cd - busybox ash
28pass pass arguments to pwd
29pass pass pwd errors out on args with strict_arg_parse
54 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

osh1 cd BAD/..

[osh stdout] Expected 'status=1\n' Got 'status=0\n'

stdout:
status=0
stderr:
osh-cpp1 cd BAD/..

[osh-cpp stdout] Expected 'status=1\n' Got 'status=0\n'

stdout:
status=0
stderr:
osh23 CDPATH is respected

[osh stdout] Expected '/tmp/spam/foo\nstatus=0\n/tmp/spam/foo\n' Got 'status=1\n/home/uke/oil/_tmp/spec-tmp/builtin-cd.test.sh/23-osh\n'

stdout:
status=1
/home/uke/oil/_tmp/spec-tmp/builtin-cd.test.sh/23-osh
stderr:
  cd foo
     ^~~
[ stdin ]:5: cd '/home/uke/oil/_tmp/spec-tmp/builtin-cd.test.sh/23-osh/foo': No such file or directory
osh-cpp23 CDPATH is respected

[osh-cpp stdout] Expected '/tmp/spam/foo\nstatus=0\n/tmp/spam/foo\n' Got 'status=1\n/home/uke/oil/_tmp/spec-tmp/builtin-cd.test.sh/23-osh-cpp\n'

stdout:
status=1
/home/uke/oil/_tmp/spec-tmp/builtin-cd.test.sh/23-osh-cpp
stderr:
  cd foo
     ^~~
[ stdin ]:5: cd '/home/uke/oil/_tmp/spec-tmp/builtin-cd.test.sh/23-osh-cpp/foo': No such file or directory
osh26 Survey of getcwd() syscall

[osh stdout] Expected '1 err.txt\n' Got '3 err.txt\n'

stdout:
3 err.txt
stderr:
osh-cpp26 Survey of getcwd() syscall

[osh-cpp stdout] Expected '1 err.txt\n' Got '3 err.txt\n'

stdout:
3 err.txt
stderr: