Barry, comment out the DBUS_FATAL_WARNINGS=1 line in test/run-test.sh. It seems like the tests complete successfully. I think the aborts on ubuntu may be outside the scope of dbus-python, because I can reproduce it using just the TestSuitePythonService.service (with the python code replaced with echo hello as above), tmp-session-bus.conf, the following GDBus code:
echo "Started session bus at $DBUS_SESSION_BUS_PID"
./test-dbus
echo "Killing session bus at $DBUS_SESSION_BUS_PID"
kill $DBUS_SESSION_BUS_PID
Commenting out the export DBUS_FATAL_WARNINGS=1 line allows the code in test-dbus to run until it times out, with the line it aborts immediately just like in the tests.
Barry, comment out the DBUS_FATAL_ WARNINGS= 1 line in test/run-test.sh. It seems like the tests complete successfully. I think the aborts on ubuntu may be outside the scope of dbus-python, because I can reproduce it using just the TestSuitePython Service. service (with the python code replaced with echo hello as above), tmp-session- bus.conf, the following GDBus code:
#include <gtk/gtk.h>
int main() proxy_new_ for_bus_ sync(G_ BUS_TYPE_ SESSION, DBUS_PROXY_ FLAGS_NONE, org.freedesktop .DBus.TestSuite PythonService" , /org/freedeskto p/DBus/ TestSuitePython Object" , org.freedesktop .DBus.TestSuite Interface" ,
{
gtk_init(NULL, NULL);
GError *error = NULL;
GDBusProxy *proxy = g_dbus_
G_
NULL,
"
"
"
NULL,
&error);
if (error != NULL) { "Failed to get proxy: %s", error->message); free(error) ;
g_warning(
g_error_
}
return 0;
}
and the following bash script:
#!/bin/bash WARNINGS= 1
export DBUS_FATAL_
eval $(dbus-launch --sh-syntax --config- file=tmp- session- bus.conf)
echo "Started session bus at $DBUS_SESSION_ BUS_PID"
./test-dbus
echo "Killing session bus at $DBUS_SESSION_ BUS_PID" BUS_PID
kill $DBUS_SESSION_
Commenting out the export DBUS_FATAL_ WARNINGS= 1 line allows the code in test-dbus to run until it times out, with the line it aborts immediately just like in the tests.