summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/msgen-2
diff options
context:
space:
mode:
Diffstat (limited to 'gettext-tools/tests/msgen-2')
-rw-r--r--[-rwxr-xr-x]gettext-tools/tests/msgen-214
1 files changed, 2 insertions, 12 deletions
diff --git a/gettext-tools/tests/msgen-2 b/gettext-tools/tests/msgen-2
index 6057515..170ebd7 100755..100644
--- a/gettext-tools/tests/msgen-2
+++ b/gettext-tools/tests/msgen-2
@@ -3,10 +3,6 @@
# Test general operation with Java .properties syntax.
-tmpfiles=""
-trap 'rm -fr $tmpfiles' 1 2 3 15
-
-tmpfiles="$tmpfiles men-test2.properties"
cat <<\EOF > men-test2.properties
!height\ must\ be\ positive=
@@ -15,14 +11,10 @@ color\ cannot\ be\ transparent=colour cannot be transparent
width\ must\ be\ positive=
EOF
-tmpfiles="$tmpfiles men-test2.tmp men-test2.out"
: ${MSGEN=msgen}
-${MSGEN} --properties-input --properties-output -o men-test2.tmp men-test2.properties
-test $? = 0 || { rm -fr $tmpfiles; exit 1; }
-LC_ALL=C tr -d '\r' < men-test2.tmp > men-test2.out
-test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+${MSGEN} --properties-input --properties-output -o men-test2.tmp men-test2.properties || exit 1
+LC_ALL=C tr -d '\r' < men-test2.tmp > men-test2.out || exit 1
-tmpfiles="$tmpfiles men-test2.ok"
cat <<\EOF > men-test2.ok
height\ must\ be\ positive=height must be positive
@@ -35,6 +27,4 @@ EOF
${DIFF} men-test2.ok men-test2.out
result=$?
-rm -fr $tmpfiles
-
exit $result