X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gettext-tools%2Ftests%2Fformat-php-2;h=f64c11996b67582bd6a09a701227405ab4f90759;hb=refs%2Fchanges%2F82%2F71082%2F1;hp=83c46e97b528538fbcfa76a531fc257cfdb8036c;hpb=5d61132f836323aaf2879e04abc9d4056db248a2;p=platform%2Fupstream%2Fgettext.git diff --git a/gettext-tools/tests/format-php-2 b/gettext-tools/tests/format-php-2 index 83c46e9..f64c119 100755 --- a/gettext-tools/tests/format-php-2 +++ b/gettext-tools/tests/format-php-2 @@ -1,11 +1,8 @@ #! /bin/sh +. "${srcdir=.}/init.sh"; path_prepend_ . ../src # Test checking of PHP format strings. -tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 - -tmpfiles="$tmpfiles f-ph-2.data" cat <<\EOF > f-ph-2.data # Valid: %% doesn't count msgid "abc%%def" @@ -90,7 +87,6 @@ while read comment; do read msgid_line read msgstr_line n=`expr $n + 1` - tmpfiles="$tmpfiles f-ph-2-$n.po f-ph-2-$n.mo" cat < f-ph-2-$n.po #, php-format ${msgid_line} @@ -119,6 +115,4 @@ EOF rm -f f-ph-2-$n.po f-ph-2-$n.mo done < f-ph-2.data -rm -fr $tmpfiles - exit 0