summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2010-05-27 22:17:54 +0200
committerTollef Fog Heen <tfheen@err.no>2010-05-27 22:17:54 +0200
commitd9077956e29b47bc4eabd4a77294f5b50248e757 (patch)
tree932f81b4d871957771e6fa7be186039443403e7e
parent2ce485c65dd9d2bbd8e64dba275f449ff2303e72 (diff)
Fix up test framework to better report errors when pkg-config exits non-zero
-rw-r--r--check/common4
1 files changed, 3 insertions, 1 deletions
diff --git a/check/common b/check/common
index b61d529..57aa806 100644
--- a/check/common
+++ b/check/common
@@ -13,10 +13,12 @@ export PKG_CONFIG_PATH
export LC_ALL=C
run_test () {
+ set +e
${pkgconfig} $ARGS >/dev/null 2>&1
R=$?
if [ "$R" -ne "${EXPECT_RETURN:-0}" ]; then
- echo "${pkgconfig} $ARGS exited with $R (expected $EXPECT_RETURN)"
+ ${pkgconfig} --print-errors $ARGS
+ echo "${pkgconfig} $ARGS exited with $R (expected ${EXPECT_RETURN:-0})" 1>&2
exit 1
fi