From: Joseph Myers Date: Wed, 24 Oct 2012 11:47:16 +0000 (+0000) Subject: Use build directory instead of /tmp in globtest.sh. X-Git-Tag: upstream/2.30~10109 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0708a7d1f08d12da03bbaac84e59370f75030d95;p=external%2Fglibc.git Use build directory instead of /tmp in globtest.sh. --- diff --git a/ChangeLog b/ChangeLog index f67a38f..905c413 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-10-24 Joseph Myers + + * posix/globtest.sh (TMPDIR): Do not set. + (testdir): Define using ${common_objpfx}posix not $TMPDIR. + (testout): Likewise. + 2012-10-24 Andreas Jaeger * io/fcntl.h: Always define mode_t, off_t, pid_t and use these diff --git a/posix/globtest.sh b/posix/globtest.sh index 29277a4..ea947b8 100755 --- a/posix/globtest.sh +++ b/posix/globtest.sh @@ -42,9 +42,10 @@ LANG=C export LANG # Create the arena -: ${TMPDIR=/tmp} -testdir=$(mktemp -d $TMPDIR/globtest-dir.XXXXXX) -testout=$(mktemp $TMPDIR/globtest-out.XXXXXX) +testdir=${common_objpfx}posix/globtest-dir +testout=${common_objpfx}posix/globtest-out +rm -rf $testdir $testout +mkdir $testdir trap 'chmod 777 $testdir/noread; rm -fr $testdir $testout' 1 2 3 15