diff options
author | Michael Biebl <biebl@debian.org> | 2016-04-04 00:07:36 +0200 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2016-04-04 07:14:26 +0200 |
commit | ac07a3bb7f245323e8ef77e5905ca456fb917afa (patch) | |
tree | 85656bbf209f6b9f87fa6bfc220e8516fe528cb8 /gcr/test-system-prompt.c | |
parent | 7b6c24540f908c80b0b9a3e14c760aed4f8e8ebe (diff) | |
download | gcr-ac07a3bb7f245323e8ef77e5905ca456fb917afa.tar.gz |
Do not require system bus for running test suite
Do not require system bus when running the test suite as this makes it
harder to run the test suite in a restricted environment like on
buildds. As the DBus connection seems to be unused, simply remove it
altogether.
https://bugzilla.gnome.org/show_bug.cgi?id=764562
Diffstat (limited to 'gcr/test-system-prompt.c')
-rw-r--r-- | gcr/test-system-prompt.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gcr/test-system-prompt.c b/gcr/test-system-prompt.c index cd3c802..32ac493 100644 --- a/gcr/test-system-prompt.c +++ b/gcr/test-system-prompt.c @@ -697,7 +697,6 @@ static void test_watch_cancels (Test *test, gconstpointer unused) { - GDBusConnection *connection; GcrPrompt *prompt; GcrPrompt *prompt2; GError *error = NULL; @@ -707,9 +706,6 @@ test_watch_cancels (Test *test, gcr_mock_prompter_set_delay_msec (3000); gcr_mock_prompter_expect_password_ok ("booo", NULL); - connection = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error); - g_assert_no_error (error); - /* This should happen immediately */ prompt = gcr_system_prompt_open_for_prompter (test->prompter_name, 0, NULL, &error); g_assert_no_error (error); @@ -744,7 +740,6 @@ test_watch_cancels (Test *test, g_object_unref (prompt); g_object_unref (pair.result1); g_object_unref (pair.result2); - g_object_unref (connection); } int |