Remove polkit tests

Complete the polkit dependency removal by also dropping it from the self tests.
Unbreaks build and up-self-test again.
This commit is contained in:
Martin Pitt 2014-07-16 11:43:57 +02:00
parent 9a2b263309
commit bddc559713
3 changed files with 0 additions and 29 deletions

1
README
View file

@ -9,7 +9,6 @@ Requirements:
dbus-1 >= 1.0
dbus-glib-1 >= 0.76
gudev-1.0 >= 001
polkit-gobject-1 >= 0.91
libusb
UPower is an abstraction for enumerating power devices,

View file

@ -136,8 +136,6 @@ check_PROGRAMS = \
up_self_test_SOURCES = \
up-self-test.c \
up-polkit.h \
up-polkit.c \
up-config.h \
up-config.c \
up-daemon.h \

View file

@ -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);
@ -281,24 +274,6 @@ up_test_history_func (void)
rmdir (history_dir);
}
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)
{
@ -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);