]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
tests: Prevent autopoint tests from creating temp files in /tmp
authorDaiki Ueno <ueno@gnu.org>
Wed, 4 Jun 2014 07:18:09 +0000 (16:18 +0900)
committerDaiki Ueno <ueno@gnu.org>
Wed, 4 Jun 2014 07:18:40 +0000 (16:18 +0900)
gettext-tools/tests/autopoint-1

index 357faba191fc90f03a657c7c4649301e96980cb3..84d27873e293e85815de762bad66dd391e57f17c 100755 (executable)
@@ -79,13 +79,20 @@ AC_OUTPUT
 EOF
 
 test -d intl || mkdir intl
+
 echo gettext-0.15 > intl/VERSION
 
-$gettext_datadir/autopoint 2>&1 | grep -q 'locally modified' || exit 1
+# For further investigation, autopoint keeps autopoint.diff in $TMPDIR
+# if there is a mismatch.  Set TMPDIR not to pollute /tmp.
+TMPDIR="$PWD" $gettext_datadir/autopoint 2>&1 | grep -q 'locally modified' || exit 1
 
 test ! -d m4 || exit 1
 test ! -d po || exit 1
 
+echo 'GNU gettext library from gettext-0.15' > intl/VERSION
+
+TMPDIR="$PWD" $gettext_datadir/autopoint 2>&1 || exit 1
+
 rm -fr intl
 
 exit 0