aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/dbus-interface.c5
-rw-r--r--tests/server-test.c2
-rwxr-xr-xtests/slmock15
3 files changed, 0 insertions, 22 deletions
diff --git a/tests/dbus-interface.c b/tests/dbus-interface.c
index 2427b34..28ce314 100644
--- a/tests/dbus-interface.c
+++ b/tests/dbus-interface.c
@@ -184,12 +184,9 @@ slmock_check_login(GDBusConnection * session, slmock_table_t * slmockdata, gbool
GVariant * array = g_variant_get_child_value(retval, 2);
int i;
- // Check all servers should be in the result are in the result
for (i = 0; slmockdata->servers[i].name != NULL; i++) {
g_assert(find_server(array, &slmockdata->servers[i]));
}
- // Check there is no more servers in the result than we expected
- g_assert(i == g_variant_n_children(array));
g_variant_unref(array);
g_variant_unref(retval);
@@ -571,9 +568,7 @@ test_dbus_suite (void)
gint
main (gint argc, gchar * argv[])
{
-#if !GLIB_CHECK_VERSION (2, 35, 1)
g_type_init();
-#endif
g_test_init(&argc, &argv, NULL);
/* Test suites */
diff --git a/tests/server-test.c b/tests/server-test.c
index 06b6233..32299af 100644
--- a/tests/server-test.c
+++ b/tests/server-test.c
@@ -270,9 +270,7 @@ test_objects_suite (void)
gint
main (gint argc, gchar * argv[])
{
-#if !GLIB_CHECK_VERSION (2, 35, 1)
g_type_init();
-#endif
g_test_init(&argc, &argv, NULL);
/* Test suites */
diff --git a/tests/slmock b/tests/slmock
index b3b5019..59c5174 100755
--- a/tests/slmock
+++ b/tests/slmock
@@ -78,20 +78,6 @@ def freerdp(email):
ms.set_default(ts1.Name)
print(ms.toJson())
-def x2go(email):
- ms = ManagementServer("http://x2go.intern", "X2GoSessionBroker")
- ts1 = TerminalServer("10.0.2.11", "X2Go Server 1", "x2go", False,
- "foo")
- ts2 = TerminalServer("10.0.2.12", "X2Go Server 2", "x2go", False,
- "bar")
- ts3 = TerminalServer("10.0.2.13", "X2Go Server 3", "x2go", False,
- "foobar")
- ms.add_terminal_server(ts1)
- ms.add_terminal_server(ts2)
- ms.add_terminal_server(ts3)
- ms.set_default(ts1.Name)
- print(ms.toJson())
-
def print_error(text):
print("{ \"Error\": \"%s\" }" % text)
@@ -215,7 +201,6 @@ emailaddrs = {"b" : big, #lots of domains/servers
"d" : defaults, #for easy testing of default ts
"e" : error,
"f" : freerdp,
- "x" : x2go,
"g" : garbage,
"m" : missing_fields, #json missing some fields
"r" : random_string,