diff options
author | Daiki Ueno <ueno@gnu.org> | 2016-06-08 15:27:59 +0900 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2016-06-08 15:28:49 +0900 |
commit | 59d9b55bb203ec78be4ace221123e0d1b5827b35 (patch) | |
tree | 4bbc2d778869beac6c86475523d366b7e8700966 /gettext-tools/tests/msgen-1 | |
parent | a2a048cfe39504db09cfbbfdfc6cb9f417b3789f (diff) | |
download | external_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/msgen-1')
-rwxr-xr-x | gettext-tools/tests/msgen-1 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gettext-tools/tests/msgen-1 b/gettext-tools/tests/msgen-1 index 9b02ffa..893c8cd 100755 --- a/gettext-tools/tests/msgen-1 +++ b/gettext-tools/tests/msgen-1 @@ -27,8 +27,8 @@ msgstr[1] "" EOF : ${MSGEN=msgen} -${MSGEN} -o men-test1.tmp men-test1.po || exit 1 -LC_ALL=C tr -d '\r' < men-test1.tmp > men-test1.out || exit 1 +${MSGEN} -o men-test1.tmp men-test1.po || Exit 1 +LC_ALL=C tr -d '\r' < men-test1.tmp > men-test1.out || Exit 1 cat <<EOF > men-test1.ok # HEADER. @@ -59,9 +59,9 @@ result=$? test $result = 0 || exit $result # Test --lang option. -${MSGEN} --lang=fr -o men-test1.tmp men-test1.po || exit 1 -grep "Language: fr" men-test1.tmp 2>&1 >/dev/null || exit 1 -grep -v "Language: fr" men-test1.tmp | LC_ALL=C tr -d '\r' > men-test1.out || exit 1 +${MSGEN} --lang=fr -o men-test1.tmp men-test1.po || Exit 1 +grep "Language: fr" men-test1.tmp 2>&1 >/dev/null || Exit 1 +grep -v "Language: fr" men-test1.tmp | LC_ALL=C tr -d '\r' > men-test1.out || Exit 1 ${DIFF} men-test1.ok men-test1.out result=$? |