Add a test for r199631.
This commit is contained in:
parent
1c645e0f5b
commit
80d5dd5fdb
15
tools/regression/bin/sh/builtins/cd2.0
Normal file
15
tools/regression/bin/sh/builtins/cd2.0
Normal file
@ -0,0 +1,15 @@
|
||||
# $FreeBSD$
|
||||
set -e
|
||||
|
||||
T=$(mktemp -d ${TMPDIR:-/tmp}/sh-test.XXXXXX)
|
||||
cd $T
|
||||
D=$T
|
||||
for i in 0 1 2 3 4 5 6 7 8 9; do
|
||||
for j in 0 1 2 3 4 5 6 7 8 9; do
|
||||
mkdir veryverylongdirectoryname
|
||||
cd veryverylongdirectoryname
|
||||
D=$D/veryverylongdirectoryname
|
||||
done
|
||||
done
|
||||
[ $(pwd | wc -c) -eq $((${#D} + 1)) ] # +\n
|
||||
rm -rf ${T}
|
Loading…
Reference in New Issue
Block a user