X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gettext-tools%2Ftests%2Fmsgmerge-4;h=df2337726a793f6f440713fceb0c8aa06e00f7b9;hb=refs%2Fchanges%2F82%2F71082%2F1;hp=904a4c616bbf774863f5828133d2681c0844ceb8;hpb=5d61132f836323aaf2879e04abc9d4056db248a2;p=platform%2Fupstream%2Fgettext.git diff --git a/gettext-tools/tests/msgmerge-4 b/gettext-tools/tests/msgmerge-4 index 904a4c6..df23377 100755 --- a/gettext-tools/tests/msgmerge-4 +++ b/gettext-tools/tests/msgmerge-4 @@ -1,11 +1,8 @@ #! /bin/sh +. "${srcdir=.}/init.sh"; path_prepend_ . ../src # Test handling of comments. -tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 - -tmpfiles="$tmpfiles mm-test4.in1.po mm-test4.in2.po" cat < mm-test4.in1.po msgid "one" msgstr "eins" @@ -27,14 +24,10 @@ msgid "three" msgstr "" EOF -tmpfiles="$tmpfiles mm-test4.tmp mm-test4.out" : ${MSGMERGE=msgmerge} -${MSGMERGE} -q -o mm-test4.tmp mm-test4.in1.po mm-test4.in2.po -test $? = 0 || { rm -fr $tmpfiles; exit 1; } -LC_ALL=C tr -d '\r' < mm-test4.tmp > mm-test4.out -test $? = 0 || { rm -fr $tmpfiles; exit 1; } +${MSGMERGE} -q -o mm-test4.tmp mm-test4.in1.po mm-test4.in2.po || exit 1 +LC_ALL=C tr -d '\r' < mm-test4.tmp > mm-test4.out || exit 1 -tmpfiles="$tmpfiles mm-test4.ok" cat < mm-test4.ok msgid "one" msgstr "eins" @@ -56,6 +49,4 @@ EOF ${DIFF} mm-test4.ok mm-test4.out result=$? -rm -fr $tmpfiles - exit $result