diff options
Diffstat (limited to 'gettext-tools/tests/msgattrib-5')
-rw-r--r--[-rwxr-xr-x] | gettext-tools/tests/msgattrib-5 | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/gettext-tools/tests/msgattrib-5 b/gettext-tools/tests/msgattrib-5 index f6953a9..56ef8ff 100755..100644 --- a/gettext-tools/tests/msgattrib-5 +++ b/gettext-tools/tests/msgattrib-5 @@ -3,10 +3,6 @@ # Test --no-obsolete option. -tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 - -tmpfiles="$tmpfiles ma-test5.po" cat <<\EOF > ma-test5.po # HEADER. # @@ -57,14 +53,10 @@ msgstr "" #~ msgstr "das einen verheirateten Mann liebt" EOF -tmpfiles="$tmpfiles ma-test5.tmp ma-test5.out" : ${MSGATTRIB=msgattrib} -${MSGATTRIB} --no-obsolete -o ma-test5.tmp ma-test5.po -test $? = 0 || { rm -fr $tmpfiles; exit 1; } -LC_ALL=C tr -d '\r' < ma-test5.tmp > ma-test5.out -test $? = 0 || { rm -fr $tmpfiles; exit 1; } +${MSGATTRIB} --no-obsolete -o ma-test5.tmp ma-test5.po || exit 1 +LC_ALL=C tr -d '\r' < ma-test5.tmp > ma-test5.out || exit 1 -tmpfiles="$tmpfiles ma-test5.ok" cat <<\EOF > ma-test5.ok # HEADER. # @@ -105,6 +97,4 @@ EOF ${DIFF} ma-test5.ok ma-test5.out result=$? -rm -fr $tmpfiles - exit $result |