From 892692a6c57e8a8d10cca6ccda907c4c488a6ca4 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Fri, 5 Sep 2014 15:14:04 +0900 Subject: tests: Improve error handling in autopoint tests --- gettext-tools/tests/autopoint-2 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'gettext-tools/tests/autopoint-2') diff --git a/gettext-tools/tests/autopoint-2 b/gettext-tools/tests/autopoint-2 index f7cdab1..30cc4e0 100755 --- a/gettext-tools/tests/autopoint-2 +++ b/gettext-tools/tests/autopoint-2 @@ -36,7 +36,8 @@ AC_CONFIG_FILES([po/Makefile.in]) AC_OUTPUT EOF -$gettext_datadir/autopoint >/dev/null 2>/dev/null || exit 1 +$gettext_datadir/autopoint >/dev/null 2>autopoint.err +test $? = 0 || { cat autopoint.err; exit 1; } test ! -d intl || exit 1 test -d m4 || exit 1 @@ -63,7 +64,8 @@ AC_CONFIG_FILES([po/Makefile.in]) AC_OUTPUT EOF -$gettext_datadir/autopoint >/dev/null 2>/dev/null || exit 1 +$gettext_datadir/autopoint >/dev/null 2>autopoint.err +test $? = 0 || { cat autopoint.err; exit 1; } test -d intl || exit 1 test -d m4 || exit 1 @@ -95,7 +97,8 @@ AC_CONFIG_FILES([po/Makefile.in]) AC_OUTPUT EOF -$gettext_datadir/autopoint >/dev/null 2>/dev/null || exit 1 +$gettext_datadir/autopoint >/dev/null 2>autopoint.err +test $? = 0 || { cat autopoint.err; exit 1; } test ! -d intl || exit 1 test ! -d m4 || exit 1 @@ -122,7 +125,8 @@ AC_CONFIG_FILES([po/Makefile.in]) AC_OUTPUT EOF -$gettext_datadir/autopoint >/dev/null 2>/dev/null || exit 1 +$gettext_datadir/autopoint >/dev/null 2>autopoint.err +test $? = 0 || { cat autopoint.err; exit 1; } test ! -d intl || exit 1 test -d m4 || exit 1 -- cgit v1.1