tests: Consistently don't try to kill pid 0
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 20 Feb 2017 17:44:09 +0000 (17:44 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 21 Feb 2017 11:56:56 +0000 (11:56 +0000)
commit06904a8d96c8ddc9fe22d0b3e36dd5ecc0c245a7
tree6faa1f73d74e6e9b6e4575bfedf101ec27a9eaf1
parentef5d7264f15f65aefc4ea332b4744d7f94596ecc
tests: Consistently don't try to kill pid 0

daemon_pid will still be 0 if any tests were skipped. In particular
this happens during `make installcheck`.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99825
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
test/dbus-daemon-eavesdrop.c
test/monitor.c