Commit 7eb34fc2 authored by Simon McVittie's avatar Simon McVittie

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=93379Signed-off-by: 's avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
parent e18b4eb1
......@@ -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" "$@"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment