X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gettext-tools%2Ftests%2Fmsgconv-5;h=800805f126166d06f8f5ab2c135d1f49d497d147;hb=refs%2Fchanges%2F82%2F71082%2F1;hp=3850c43edf35d800dd137d340dc2301964f51a36;hpb=5d61132f836323aaf2879e04abc9d4056db248a2;p=platform%2Fupstream%2Fgettext.git diff --git a/gettext-tools/tests/msgconv-5 b/gettext-tools/tests/msgconv-5 index 3850c43..800805f 100755 --- a/gettext-tools/tests/msgconv-5 +++ b/gettext-tools/tests/msgconv-5 @@ -1,11 +1,8 @@ #! /bin/sh +. "${srcdir=.}/init.sh"; path_prepend_ . ../src # Test msgconv on a PO file with contexts. -tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 - -tmpfiles="$tmpfiles mco-test5.po" cat <<\EOF > mco-test5.po msgid "" msgstr "" @@ -51,14 +48,10 @@ msgstr "photocopieur" #~ msgstr "Enregistrer sous" EOF -tmpfiles="$tmpfiles mco-test5.tmp mco-test5.out" : ${MSGCONV=msgconv} -${MSGCONV} --to-code=UTF-8 -o mco-test5.tmp mco-test5.po -test $? = 0 || { rm -fr $tmpfiles; exit 1; } -LC_ALL=C tr -d '\r' < mco-test5.tmp > mco-test5.out -test $? = 0 || { rm -fr $tmpfiles; exit 1; } +${MSGCONV} --to-code=UTF-8 -o mco-test5.tmp mco-test5.po || exit 1 +LC_ALL=C tr -d '\r' < mco-test5.tmp > mco-test5.out || exit 1 -tmpfiles="$tmpfiles mco-test5.ok" cat <<\EOF > mco-test5.ok msgid "" msgstr "" @@ -108,6 +101,4 @@ EOF ${DIFF} mco-test5.ok mco-test5.out result=$? -rm -fr $tmpfiles - exit $result