From a11268e338d60aaf912b0d55cc4dc6787fe2324d Mon Sep 17 00:00:00 2001 From: Amit tewari Date: Tue, 15 Dec 2015 11:26:44 +0530 Subject: [PATCH] Fix for handling test-case failure scenario in run-test.sh. Run-test-sh do not take care of exit status when test case fail. This Fix handle the error case. --- test/name-test/run-test.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/name-test/run-test.sh b/test/name-test/run-test.sh index 1e257a1..d69597b 100755 --- a/test/name-test/run-test.sh +++ b/test/name-test/run-test.sh @@ -51,6 +51,9 @@ c_test () { if ! "${DBUS_TOP_BUILDDIR}/libtool" --mode=execute $DEBUG "$DBUS_TOP_BUILDDIR/test/name-test/$t" "$@" >&2; then e=$? echo "# exit status $e" + else + e=$? + echo "# exit status $e" fi interpret_result "$e" "$t" "$@" } -- 1.7.9.5