X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gettext-tools%2Ftests%2Fmsgattrib-13;h=f352983e1aa7680f25620371834ec95938e88943;hb=refs%2Fchanges%2F82%2F71082%2F1;hp=ec362a9d825349d2ef2abf6fbdbf3281d4597551;hpb=90a3363ce7c017439e9953fd5e832fbef8db0dd5;p=platform%2Fupstream%2Fgettext.git diff --git a/gettext-tools/tests/msgattrib-13 b/gettext-tools/tests/msgattrib-13 index ec362a9..f352983 100755 --- a/gettext-tools/tests/msgattrib-13 +++ b/gettext-tools/tests/msgattrib-13 @@ -1,11 +1,8 @@ #! /bin/sh +. "${srcdir=.}/init.sh"; path_prepend_ . ../src # Test --obsolete option. -tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 - -tmpfiles="$tmpfiles ma-test13.po" cat <<\EOF > ma-test13.po # HEADER. # @@ -56,14 +53,10 @@ msgstr "" #~ msgstr "das einen verheirateten Mann liebt" EOF -tmpfiles="$tmpfiles ma-test13.tmp ma-test13.out" : ${MSGATTRIB=msgattrib} -${MSGATTRIB} --obsolete -o ma-test13.tmp ma-test13.po -test $? = 0 || { rm -fr $tmpfiles; exit 1; } -LC_ALL=C tr -d '\r' < ma-test13.tmp > ma-test13.out -test $? = 0 || { rm -fr $tmpfiles; exit 1; } +${MSGATTRIB} --obsolete -o ma-test13.tmp ma-test13.po || exit 1 +LC_ALL=C tr -d '\r' < ma-test13.tmp > ma-test13.out || exit 1 -tmpfiles="$tmpfiles ma-test13.ok" cat <<\EOF > ma-test13.ok # HEADER. # @@ -92,6 +85,4 @@ EOF ${DIFF} ma-test13.ok ma-test13.out result=$? -rm -fr $tmpfiles - exit $result