mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-15 04:05:11 +01:00
Tests: It is useless to unset "DBUS_SESSION_BUS_ADDRESS" manually
If the goal is to make sure we don't have a dbus connection, it has to call g_test_dbus_unset() instead which is much more complete. In this case, g_test_dbus_unset() is called already, so it should be fine. https://bugzilla.gnome.org/show_bug.cgi?id=697348
This commit is contained in:
parent
06fbdb04d5
commit
e94df7cfc2
@ -449,8 +449,6 @@ test_actions (void)
|
|||||||
gchar *argv[] = { binpath, NULL };
|
gchar *argv[] = { binpath, NULL };
|
||||||
GApplication *app;
|
GApplication *app;
|
||||||
|
|
||||||
g_unsetenv ("DBUS_SESSION_BUS_ADDRESS");
|
|
||||||
|
|
||||||
app = g_application_new ("org.gtk.Unimportant",
|
app = g_application_new ("org.gtk.Unimportant",
|
||||||
G_APPLICATION_FLAGS_NONE);
|
G_APPLICATION_FLAGS_NONE);
|
||||||
g_signal_connect (app, "activate", G_CALLBACK (on_activate), NULL);
|
g_signal_connect (app, "activate", G_CALLBACK (on_activate), NULL);
|
||||||
@ -505,8 +503,6 @@ test_local_command_line (void)
|
|||||||
gchar *argv[] = { binpath, "-invalid", NULL };
|
gchar *argv[] = { binpath, "-invalid", NULL };
|
||||||
GApplication *app;
|
GApplication *app;
|
||||||
|
|
||||||
g_unsetenv ("DBUS_SESSION_BUS_ADDRESS");
|
|
||||||
|
|
||||||
app = g_object_new (test_loc_cmd_app_get_type (),
|
app = g_object_new (test_loc_cmd_app_get_type (),
|
||||||
"application-id", "org.gtk.Unimportant",
|
"application-id", "org.gtk.Unimportant",
|
||||||
"flags", G_APPLICATION_FLAGS_NONE,
|
"flags", G_APPLICATION_FLAGS_NONE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user