From 7eb34fc2cdb637974976ccaf3a9996059f09758f Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 15 Dec 2015 17:23:00 +0000 Subject: [PATCH] test/name-test/run-test.sh: output correct result if a C test fails Loosely based on a patch from amit tewari. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=93379 Signed-off-by: Simon McVittie --- test/name-test/run-test.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/name-test/run-test.sh b/test/name-test/run-test.sh index 1e257a1..8b9e7ad 100755 --- a/test/name-test/run-test.sh +++ b/test/name-test/run-test.sh @@ -48,10 +48,8 @@ c_test () { shift e=0 echo "# running test $t" - if ! "${DBUS_TOP_BUILDDIR}/libtool" --mode=execute $DEBUG "$DBUS_TOP_BUILDDIR/test/name-test/$t" "$@" >&2; then - e=$? - echo "# exit status $e" - fi + "${DBUS_TOP_BUILDDIR}/libtool" --mode=execute $DEBUG "$DBUS_TOP_BUILDDIR/test/name-test/$t" "$@" >&2 || e=$? + echo "# exit status $e" interpret_result "$e" "$t" "$@" } -- 2.7.4