2012-10-19 Joseph Myers <joseph@codesourcery.com>
+ [BZ #13888]
+ * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
+ or TMPDIR.
+ (testout): Likewise.
+
* posix/Makefile ($(objpfx)tst-getconf.out): Pass
$(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
$(rtld-installed-name).
export LANG
# First create our scenario:
-tmp=`echo ${TMPDIR:-/tmp} | sed 's|\(.\)/*$|\1|'`
+tmp=`pwd | sed 's|\(.\)/*$|\1|'`
tmpdir=$tmp/ftwtest.d
[ -f ${objpfx}elf/ld.so ] && ldso=${objpfx}elf/ld.so
echo > $tmpdir/bar/xo
chmod a-x,a+r $tmpdir/bar
-testout=${TMPDIR:-/tmp}/ftwtest.out
+testout=$tmp/ftwtest.out
LD_LIBRARY_PATH=$objpfx $ldso $testprogram $tmpdir |
sort > $testout