mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-14 12:08:08 +02:00
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 <simon.mcvittie@collabora.co.uk>
This commit is contained in:
parent
e18b4eb14c
commit
7eb34fc2cd
1 changed files with 2 additions and 4 deletions
|
|
@ -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" "$@"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue