summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/xgettext-its-1
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2016-06-08 15:27:59 +0900
committerDaiki Ueno <ueno@gnu.org>2016-06-08 15:28:49 +0900
commit59d9b55bb203ec78be4ace221123e0d1b5827b35 (patch)
tree4bbc2d778869beac6c86475523d366b7e8700966 /gettext-tools/tests/xgettext-its-1
parenta2a048cfe39504db09cfbbfdfc6cb9f417b3789f (diff)
downloadexternal_gettext-59d9b55bb203ec78be4ace221123e0d1b5827b35.zip
external_gettext-59d9b55bb203ec78be4ace221123e0d1b5827b35.tar.gz
external_gettext-59d9b55bb203ec78be4ace221123e0d1b5827b35.tar.bz2
tests: Use Exit instead of exit if init.sh is used
* gettext-tools/tests/*: Use Exit instead of exit, as suggested by init.sh.
Diffstat (limited to 'gettext-tools/tests/xgettext-its-1')
-rwxr-xr-xgettext-tools/tests/xgettext-its-112
1 files changed, 6 insertions, 6 deletions
diff --git a/gettext-tools/tests/xgettext-its-1 b/gettext-tools/tests/xgettext-its-1
index 9e3cac5..b77d5b1 100755
--- a/gettext-tools/tests/xgettext-its-1
+++ b/gettext-tools/tests/xgettext-its-1
@@ -13,7 +13,7 @@ cat <<\EOF > empty.xml
<empty></empty>
EOF
-${XGETTEXT} --itstool -o empty.pot empty.xml 2>empty.err || { cat empty.err; exit 1; }
+${XGETTEXT} --itstool -o empty.pot empty.xml 2>empty.err || { cat empty.err; Exit 1; }
test -d its || mkdir its
@@ -22,7 +22,7 @@ cat <<\EOF > its/empty-1.loc
<locatingRules/>
EOF
-${XGETTEXT} --itstool -o empty.pot empty.xml 2>empty.err || { cat empty.err; exit 1; }
+${XGETTEXT} --itstool -o empty.pot empty.xml 2>empty.err || { cat empty.err; Exit 1; }
cat <<\EOF > its/empty-2.loc
<?xml version="1.0"?>
@@ -33,7 +33,7 @@ cat <<\EOF > its/empty-2.loc
</locatingRules>
EOF
-${XGETTEXT} --itstool -o empty.pot empty.xml 2>empty.err || { cat empty.err; exit 1; }
+${XGETTEXT} --itstool -o empty.pot empty.xml 2>empty.err || { cat empty.err; Exit 1; }
cat <<\EOF > its/empty.its
<?xml version="1.0"?>
@@ -41,7 +41,7 @@ cat <<\EOF > its/empty.its
</its:rules>
EOF
-${XGETTEXT} --itstool -o empty.pot empty.xml 2>empty.err || { cat empty.err; exit 1; }
+${XGETTEXT} --itstool -o empty.pot empty.xml 2>empty.err || { cat empty.err; Exit 1; }
cat <<\EOF > its/messages.loc
<?xml version="1.0"?>
@@ -251,7 +251,7 @@ EOF
: ${DIFF=diff}
-${XGETTEXT} --itstool --no-wrap --omit-header -o messages.pot messages.xml 2>messages.err || { cat messages.err; exit 1; }
+${XGETTEXT} --itstool --no-wrap --omit-header -o messages.pot messages.xml 2>messages.err || { cat messages.err; Exit 1; }
${DIFF} messages.ok messages.pot
result=$?
test $result = 0 || exit $result
@@ -267,7 +267,7 @@ cd po
GETTEXTDATADIR=..
export GETTEXTDATADIR
-${XGETTEXT} --itstool --no-wrap --omit-header --directory=.. -o messages.pot.in data/messages.msg.in 2>messages.err || { cat messages.err; exit 1; }
+${XGETTEXT} --itstool --no-wrap --omit-header --directory=.. -o messages.pot.in data/messages.msg.in 2>messages.err || { cat messages.err; Exit 1; }
sed -e 's!^#: data/messages.msg.in!#: messages.xml!' \
< messages.pot.in > messages.pot