summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/msgfmt-8
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2014-03-10 18:13:28 +0900
committerDaiki Ueno <ueno@gnu.org>2014-03-10 18:24:15 +0900
commitd66197a3ca8355efa22f1d9c687f41eb30ae19ff (patch)
treec4acc964d617b04629a3a3bbb7632f34cdb35b9c /gettext-tools/tests/msgfmt-8
parent0e79f41006d2b4d69dd3eb57c0202faa6c1fba44 (diff)
downloadexternal_gettext-d66197a3ca8355efa22f1d9c687f41eb30ae19ff.zip
external_gettext-d66197a3ca8355efa22f1d9c687f41eb30ae19ff.tar.gz
external_gettext-d66197a3ca8355efa22f1d9c687f41eb30ae19ff.tar.bz2
tests: Remove unnecessary tempfile cleanup code
Cleanup code like "rm -fr $tmpfiles" are no longer needed, since 'init.sh' takes care of that.
Diffstat (limited to 'gettext-tools/tests/msgfmt-8')
-rw-r--r--[-rwxr-xr-x]gettext-tools/tests/msgfmt-88
1 files changed, 0 insertions, 8 deletions
diff --git a/gettext-tools/tests/msgfmt-8 b/gettext-tools/tests/msgfmt-8
index fd81344..9afea69 100755..100644
--- a/gettext-tools/tests/msgfmt-8
+++ b/gettext-tools/tests/msgfmt-8
@@ -3,10 +3,6 @@
# Check for duplicates with different translations
-tmpfiles=""
-trap 'rm -fr $tmpfiles' 1 2 3 15
-
-tmpfiles="$tmpfiles mf-test8.in1"
cat <<EOF > mf-test8.in1
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
@@ -27,13 +23,11 @@ msgid "3" msgstr "3"
msgid "3" msgstr "three ha ha"
EOF
-tmpfiles="$tmpfiles mf-test8.err"
: ${MSGFMT=msgfmt}
LC_MESSAGES=C LC_ALL= \
${MSGFMT} --verbose --check mf-test8.in1 -o /dev/null \
2>&1 | grep -v '^==' | sed -e 's|[^ ]*\\msgfmt\.exe|msgfmt|' -e 's|^msgfmt\.exe|msgfmt|' | LC_ALL=C tr -d '\r' > mf-test8.err
-tmpfiles="$tmpfiles mf-test8.ok"
cat << EOF > mf-test8.ok
mf-test8.in1:17: duplicate message definition...
mf-test8.in1:16: ...this is the location of the first definition
@@ -44,6 +38,4 @@ EOF
${DIFF} mf-test8.ok mf-test8.err
result=$?
-rm -fr $tmpfiles
-
exit $result