X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fgettext.git;a=blobdiff_plain;f=gettext-tools%2Ftests%2Fmsgcat-14;h=475e9e6595af9ac8459cd8f46662c63e63f4ec5c;hp=b6865944cc4ed8231b6c01da20a80c85cddb3652;hb=2d875e23d946ff9bf4d3ac469e909b83486123a4;hpb=5d61132f836323aaf2879e04abc9d4056db248a2 diff --git a/gettext-tools/tests/msgcat-14 b/gettext-tools/tests/msgcat-14 index b686594..475e9e6 100755 --- a/gettext-tools/tests/msgcat-14 +++ b/gettext-tools/tests/msgcat-14 @@ -1,11 +1,8 @@ #! /bin/sh +. "${srcdir=.}/init.sh"; path_prepend_ . ../src # Verify that msgcat complains when it would need to change msgctxts. -tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 - -tmpfiles="$tmpfiles mcat-test14.in1 mcat-test14.in2" cat <<\EOF > mcat-test14.in1 msgid "" msgstr "" @@ -68,12 +65,9 @@ msgstr "photocopieur" #~ msgstr "Enregistrer l'as" EOF -tmpfiles="$tmpfiles mcat-test14.out" rm -f mcat-test14.out : ${MSGCAT=msgcat} ${MSGCAT} -o mcat-test14.out mcat-test14.in1 mcat-test14.in2 2>/dev/null -test $? = 1 || { rm -fr $tmpfiles; exit 1; } - -rm -fr $tmpfiles +test $? = 1 || { exit 1; } exit 0