]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Make xgettext-its-2 test stronger.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Dec 2016 13:02:14 +0000 (14:02 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Dec 2016 13:02:14 +0000 (14:02 +0100)
* gettext-tools/tests/xgettext-its-2: Set each environment variable only for
the scope of a single xgettext invocation.

gettext-tools/tests/xgettext-its-2

index 6c14c853bb359ae9aba64a9b7713f2148e443cd0..2441bf793f68d87b6a163075fb53a728181dd7d2 100755 (executable)
@@ -41,20 +41,17 @@ LC_MESSAGES=C ${XGETTEXT} -o /dev/null input.a 2>&1 | grep 'is unknown; will try
 result=$?
 test $result = 0 || Exit 1
 
-GETTEXTDATADIR=a
-export GETTEXTDATADIR
+GETTEXTDATADIR=a \
 LC_MESSAGES=C ${XGETTEXT} -o /dev/null input.a 2>&1 | grep 'is unknown; will try C' 2>&1 >/dev/null
 result=$?
 test $result = 0 && Exit 1
 
-GETTEXTDATADIRS=b:a
-export GETTEXTDATADIRS
+GETTEXTDATADIRS=b:a \
 LC_MESSAGES=C ${XGETTEXT} -o /dev/null input.b 2>&1 | grep 'is unknown; will try C' 2>&1 >/dev/null
 result=$?
 test $result = 0 && Exit 1
 
-XDG_DATA_DIRS=xa
-export XDG_DATA_DIRS
+XDG_DATA_DIRS=xa \
 LC_MESSAGES=C ${XGETTEXT} -o /dev/null input.xa 2>&1 | grep 'is unknown; will try C' 2>&1 >/dev/null
 result=$?
 test $result = 0 && Exit 1