[GDBus] Reopening the session bus

Emmanuele Bassi ebassi at gmail.com
Thu Apr 9 05:52:21 PDT 2015


Hi;

On 9 April 2015 at 13:43, David Zeuthen <zeuthen at gmail.com> wrote:
> Hi,
>
> On Thu, Apr 9, 2015 at 2:57 AM, Alberto Mardegan
> <alberto.mardegan at canonical.com> wrote:
>>
>> Hi all!
>>   I'm writing some tests in python, and I'm setting up a new D-Bus
>> server for the session bus in each setUp() function, and I'm killing it
>> at the end of each test case.
>
>
> In case you missed it, there's also GTestDBus which could be helpful when
> writing tests
>
>  https://developer.gnome.org/gio/unstable/GTestDBus.html

Except maybe not, since GLib maintainers are not really all too happy
about GTestDBus in the first place:

  https://bugzilla.gnome.org/show_bug.cgi?id=712148#c44

tl;dr: too many side effects with code that uses singletons and
shared, global state.

Ciao,
 Emmanuele.

-- 
https://www.bassi.io
[@] ebassi [@gmail.com]


More information about the dbus mailing list