Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / tests / msgfmt-11
index 0d8f1ff..ebafb01 100755 (executable)
@@ -1,11 +1,8 @@
 #! /bin/sh
+. "${srcdir=.}/init.sh"; path_prepend_ . ../src
 
 # Test handling of invalid multibyte sequences.
 
-tmpfiles=""
-trap 'rm -fr $tmpfiles' 1 2 3 15
-
-tmpfiles="$tmpfiles mf-11.po"
 cat <<\EOF > mf-11.po
 msgid ""
 msgstr ""
@@ -22,7 +19,6 @@ msgid "_Enable keyboard accessibility"
 msgstr "_õצÍËÎÕÔÉ ÓÐÅæÁÌØΦ ÍÏÖÌÉ×ÏÓÔ¦ ËÌÁצÁÔÕÒÉ"
 EOF
 
-tmpfiles="$tmpfiles mf-11.mo core *.core"
 : ${MSGFMT=msgfmt}
 ${MSGFMT} --check -o mf-11.mo mf-11.po 2>/dev/null
 # Exit code must be 1.
@@ -31,6 +27,4 @@ ${MSGFMT} --check -o mf-11.mo mf-11.po 2>/dev/null
 test $? = 1
 result=$?
 
-rm -fr $tmpfiles
-
 exit $result