summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/msgfmt-5
diff options
context:
space:
mode:
Diffstat (limited to 'gettext-tools/tests/msgfmt-5')
-rw-r--r--[-rwxr-xr-x]gettext-tools/tests/msgfmt-527
1 files changed, 6 insertions, 21 deletions
diff --git a/gettext-tools/tests/msgfmt-5 b/gettext-tools/tests/msgfmt-5
index 46c101b..f4fb368 100755..100644
--- a/gettext-tools/tests/msgfmt-5
+++ b/gettext-tools/tests/msgfmt-5
@@ -3,10 +3,6 @@
# Test multi-domain handling.
-tmpfiles=""
-trap 'rm -fr $tmpfiles' 1 2 3 15
-
-tmpfiles="$tmpfiles foo.po"
cat <<\EOF > foo.po
domain "foo-de"
msgid ""
@@ -33,23 +29,15 @@ msgid "bye"
msgstr "A bientôt"
EOF
-tmpfiles="$tmpfiles foo-de.mo foo-fr.mo"
: ${MSGFMT=msgfmt}
-${MSGFMT} foo.po
-test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+${MSGFMT} foo.po || exit 1
-tmpfiles="$tmpfiles foo-de.tmp foo-de.out foo-fr.tmp foo-fr.out"
: ${MSGUNFMT=msgunfmt}
-${MSGUNFMT} -o foo-de.tmp foo-de.mo
-test $? = 0 || { rm -fr $tmpfiles; exit 1; }
-LC_ALL=C tr -d '\r' < foo-de.tmp > foo-de.out
-test $? = 0 || { rm -fr $tmpfiles; exit 1; }
-${MSGUNFMT} -o foo-fr.tmp foo-fr.mo
-test $? = 0 || { rm -fr $tmpfiles; exit 1; }
-LC_ALL=C tr -d '\r' < foo-fr.tmp > foo-fr.out
-test $? = 0 || { rm -fr $tmpfiles; exit 1; }
-
-tmpfiles="$tmpfiles foo-de.ok"
+${MSGUNFMT} -o foo-de.tmp foo-de.mo || exit 1
+LC_ALL=C tr -d '\r' < foo-de.tmp > foo-de.out || exit 1
+${MSGUNFMT} -o foo-fr.tmp foo-fr.mo || exit 1
+LC_ALL=C tr -d '\r' < foo-fr.tmp > foo-fr.out || exit 1
+
cat <<\EOF > foo-de.ok
msgid ""
msgstr "Content-Type: text/plain; charset=ISO-8859-1\n"
@@ -61,7 +49,6 @@ msgid "hello"
msgstr "Hallo"
EOF
-tmpfiles="$tmpfiles foo-fr.ok"
cat <<\EOF > foo-fr.ok
msgid ""
msgstr "Content-Type: text/plain; charset=ISO-8859-1\n"
@@ -77,6 +64,4 @@ EOF
${DIFF} foo-de.ok foo-de.out && ${DIFF} foo-fr.ok foo-fr.out
result=$?
-rm -fr $tmpfiles
-
exit $result