From: Daiki Ueno Date: Wed, 4 Jun 2014 07:18:09 +0000 (+0900) Subject: tests: Prevent autopoint tests from creating temp files in /tmp X-Git-Tag: v0.19.1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da1d696c498ea74c7ec9d614c3d45f8601043e20;p=thirdparty%2Fgettext.git tests: Prevent autopoint tests from creating temp files in /tmp --- diff --git a/gettext-tools/tests/autopoint-1 b/gettext-tools/tests/autopoint-1 index 357faba19..84d27873e 100755 --- a/gettext-tools/tests/autopoint-1 +++ b/gettext-tools/tests/autopoint-1 @@ -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