From 2818599c93e2cb9527d0fd6bbbc8a056ab324056 Mon Sep 17 00:00:00 2001 From: ygribov Date: Mon, 19 Feb 2018 08:03:17 +0000 Subject: Respect TMPDIR in contrib scripts. 2018-02-18 Yury Gribov contrib/ * compare_tests: Use TMPDIR when set. * dg-cmp-results.sh: Ditto. * warn_summary: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257801 138bc75d-0d04-0410-961f-82ee72b054a4 --- contrib/compare_tests | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'contrib/compare_tests') diff --git a/contrib/compare_tests b/contrib/compare_tests index d16e7e9737e..51a3719ff6a 100755 --- a/contrib/compare_tests +++ b/contrib/compare_tests @@ -36,17 +36,18 @@ export LC_ALL=C tool=gxx -tmp1=/tmp/$tool-testing.$$a -tmp2=/tmp/$tool-testing.$$b -now_s=/tmp/$tool-testing.$$d -before_s=/tmp/$tool-testing.$$e -lst1=/tmp/$tool-lst1.$$ -lst2=/tmp/$tool-lst2.$$ -lst3=/tmp/$tool-lst3.$$ -lst4=/tmp/$tool-lst4.$$ -lst5=/tmp/$tool-lst5.$$ -sum1=/tmp/$tool-sum1.$$ -sum2=/tmp/$tool-sum2.$$ +TMPDIR=${TMPDIR:-/tmp} +tmp1=$TMPDIR/$tool-testing.$$a +tmp2=$TMPDIR/$tool-testing.$$b +now_s=$TMPDIR/$tool-testing.$$d +before_s=$TMPDIR/$tool-testing.$$e +lst1=$TMPDIR/$tool-lst1.$$ +lst2=$TMPDIR/$tool-lst2.$$ +lst3=$TMPDIR/$tool-lst3.$$ +lst4=$TMPDIR/$tool-lst4.$$ +lst5=$TMPDIR/$tool-lst5.$$ +sum1=$TMPDIR/$tool-sum1.$$ +sum2=$TMPDIR/$tool-sum2.$$ tmps="$tmp1 $tmp2 $now_s $before_s $lst1 $lst2 $lst3 $lst4 $lst5 $sum1 $sum2" [ "$1" = "-strict" ] && strict=$1 && shift -- cgit v1.2.1