OSDN Git Service

unit/test-gdbus-client: Don't run tests if setup fails
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 18 May 2015 18:32:33 +0000 (21:32 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 18 May 2015 18:35:40 +0000 (21:35 +0300)
This will make all gdbus tests be ignored if D-Bus is not available and
one cannot be created with dbus-run-session.

unit/test-gdbus-client.c

index 7e16d16..b25289f 100644 (file)
@@ -72,7 +72,7 @@ static struct context *create_context(void)
                }
 
                g_free(context);
-               tester_test_failed();
+               tester_test_abort();
                return NULL;
        }