summaryrefslogtreecommitdiff
path: root/src/up-self-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/up-self-test.c')
-rw-r--r--src/up-self-test.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/up-self-test.c b/src/up-self-test.c
index ecf1ff9..da10d7d 100644
--- a/src/up-self-test.c
+++ b/src/up-self-test.c
@@ -32,7 +32,6 @@
#include "up-device-list.h"
#include "up-history.h"
#include "up-native.h"
-#include "up-polkit.h"
#include "up-wakeups.h"
gchar *history_dir = NULL;
@@ -65,12 +64,6 @@ up_test_daemon_func (void)
{
UpDaemon *daemon;
- /* needs polkit, which only listens to the system bus */
- if (!g_file_test (DBUS_SYSTEM_SOCKET, G_FILE_TEST_EXISTS)) {
- puts("No system D-BUS running, skipping test");
- return;
- }
-
daemon = up_daemon_new ();
g_assert (daemon != NULL);
@@ -282,24 +275,6 @@ up_test_history_func (void)
}
static void
-up_test_polkit_func (void)
-{
- UpPolkit *polkit;
-
- /* polkit only listens to the system bus */
- if (!g_file_test (DBUS_SYSTEM_SOCKET, G_FILE_TEST_EXISTS)) {
- puts("No system D-BUS running, skipping test");
- return;
- }
-
- polkit = up_polkit_new ();
- g_assert (polkit != NULL);
-
- /* unref */
- g_object_unref (polkit);
-}
-
-static void
up_test_wakeups_func (void)
{
UpWakeups *wakeups;
@@ -331,7 +306,6 @@ main (int argc, char **argv)
g_test_add_func ("/power/device_list", up_test_device_list_func);
g_test_add_func ("/power/history", up_test_history_func);
g_test_add_func ("/power/native", up_test_native_func);
- g_test_add_func ("/power/polkit", up_test_polkit_func);
g_test_add_func ("/power/wakeups", up_test_wakeups_func);
g_test_add_func ("/power/daemon", up_test_daemon_func);