Results for builtin-cd.test.sh

statusoshosh-cpp
pass 2221
FAIL 23
total2424
caseoshosh-cppdescription
0pass pass cd and $PWD
1FAIL FAIL cd BAD/..
detailsdetails
2pass pass cd with 2 or more args
3pass pass cd - without OLDPWD
4pass pass $OLDPWD
5pass pass pwd
6pass pass pwd after cd ..
7pass pass pwd with symlink and -P
8pass pass setting $PWD doesn't affect the value of 'pwd' builtin
9pass pass unset PWD; then pwd
10pass pass 'unset PWD; pwd' before any cd (tickles a rare corner case)
11pass pass lie about PWD; pwd before any cd
12pass pass remove pwd dir
13pass pass pwd in symlinked dir on shell initialization
14pass pass Test the current directory after 'cd ..' involving symlinks
15pass pass cd with no arguments
16pass pass cd to nonexistent dir
17pass pass cd away from dir that was deleted
18pass pass cd permits double bare dash
19pass pass cd to symlink with -L and -P
20pass pass cd to relative path with -L and -P
21pass pass unset PWD; cd /tmp is allowed (regression)
22pass FAIL Change directory in non-shell parent process (make or Python)
details
23FAIL FAIL getcwd() syscall is not made
detailsdetails
43 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 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:
osh-cpp22 Change directory in non-shell parent process (make or Python)

[osh-cpp stdout] Expected '/cpan/Encode/Byte\n', got '\n'

stdout:
stderr: 
Python PWD = '/home/uke/oil/_tmp/spec-tmp/builtin-cd.test.sh.7164/22-osh-cpp'
Python argv = ['/home/uke/oil/_bin/cxx-asan/osh', '-c', 'cd Byte; pwd']
  cd Byte; pwd
     ^~~~
[ -c flag ]:1: cd '/home/uke/oil/_tmp/spec-tmp/builtin-cd.test.sh.7164/22-osh-cpp/Byte': No such file or directory
osh23 getcwd() syscall is not made

[osh stdout] Expected 'hi\n1 err.txt\n', got '3 err.txt\n'

stdout:
3 err.txt
stderr:
osh-cpp23 getcwd() syscall is not made

[osh-cpp stdout] Expected 'hi\n1 err.txt\n', got '3 err.txt\n'

stdout:
3 err.txt
stderr: