Don't report file descriptors as "leaked" if they were already open
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 14 Mar 2011 16:53:23 +0000 (16:53 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 27 Apr 2011 15:28:36 +0000 (16:28 +0100)
commite4abc1d1a5657256bc1632477096bf86b08beff8
tree0ff6b6e8ea122c2a270da8c3977a6a4ce4d1bb82
parent614ea05b182b3cd142c6ad9da43e65a7113a0ea4
Don't report file descriptors as "leaked" if they were already open

This is necessary to run the regression tests under valgrind (if
telling it to output to a dedicated fd), gdb, fakeroot etc.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=35173
Reviewed-by: Colin Walters <walters@verbum.org>
bus/test-main.c
dbus/dbus-message-private.h
dbus/dbus-message-util.c