name-test: Backport dbus-run-session wrapper from git master
authorSimon McVittie <smcv@collabora.com>
Wed, 5 Jul 2017 14:28:08 +0000 (15:28 +0100)
committerSimon McVittie <smcv@collabora.com>
Thu, 6 Jul 2017 17:34:48 +0000 (18:34 +0100)
commitb2fbffb02728e9557e37e6f2792bb8d548971952
tree0a21d13c356e667e4119de86e64d528a76d097f7
parentc462a6b395cf1e46df72c4d6edd5c5e401e79863
name-test: Backport dbus-run-session wrapper from git master

test-pending-call-disconnected relies on being run under a session bus.
On master, the TESTS in this directory all get that treatment, but
in dbus-1.10 they do not. This caused test-pending-call-disconnected
to fail in minimal environments like travis-ci where there is no
developer-initiated session bus.

Backport part of commit ec6b220 "name-test: run most C tests directly,
not via run-test.sh" to wrap it in dbus-run-session. This is better
than putting it in run-test.sh because this way, its TAP output is
parsed directly by Automake.

It also has the side benefit of exercising dbus-run-session in the
automated tests.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101698
test/name-test/Makefile.am