Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / tests / msggrep-10
index 9ca91c2..753220b 100755 (executable)
@@ -1,16 +1,11 @@
 #! /bin/sh
+. "${srcdir=.}/init.sh"; path_prepend_ . ../src
 
 # Verify that $ as end-of-line anchor does not cause a crash.
 # <https://bugzilla.redhat.com/show_bug.cgi?id=483181>
 # <https://savannah.gnu.org/bugs/?25437>
 
-tmpfiles=""
-trap 'rm -fr $tmpfiles' 1 2 3 15
-
 : ${MSGGREP=msggrep}
-echo a=b | LC_MESSAGES=C LC_ALL= ${MSGGREP} -P -K -e '^a$' > /dev/null
-test $? = 0 || { rm -fr $tmpfiles; exit 1; }
-
-rm -fr $tmpfiles
+echo a=b | LC_MESSAGES=C LC_ALL= ${MSGGREP} -P -K -e '^a$' > /dev/null || exit 1
 
 exit $result