1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

tests: cd /dev, not /home which not all systems have (re: ca2443b5)

This commit is contained in:
Martijn Dekker 2021-04-16 02:53:06 +01:00
parent 6701bb30de
commit 5fc9e64208
2 changed files with 3 additions and 3 deletions

View file

@ -1135,7 +1135,7 @@ got=$(fn)
# $PWD should be set correctly after cd # $PWD should be set correctly after cd
exp="$PWD exp="$PWD
$PWD" $PWD"
got=$(echo $PWD; PWD=/tmp cd /home; echo $PWD) got=$(echo $PWD; PWD=/tmp cd /dev; echo $PWD)
[[ $got == "$exp" ]] || [[ $got == "$exp" ]] ||
err_exit "PWD is incorrect after cd" \ err_exit "PWD is incorrect after cd" \
"(expected $(printf %q "$exp"), got $(printf %q "$got"))" "(expected $(printf %q "$exp"), got $(printf %q "$got"))"

View file

@ -428,8 +428,8 @@ do cd /tmp
OLDPWD=/bar OLDPWD=/bar
cd /bin cd /bin
cd /usr cd /usr
cd /home cd /dev
cd /home cd /dev
cd - > /dev/null cd - > /dev/null
unset OLDPWD PWD unset OLDPWD PWD
cd /bin cd /bin