[Spice-commits] server/tests
Frediano Ziglio
fziglio at kemper.freedesktop.org
Mon Nov 7 17:19:38 UTC 2016
server/tests/spice-options-test.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
New commits:
commit 2051007e05505e3b96c2c3c4ccca8a8e9522ba51
Author: Pavel Grunt <pgrunt at redhat.com>
Date: Thu Nov 3 13:30:07 2016 +0100
spice-options-test: Convert to gtest to catch criticals
Fail on glib warnings instead of ignoring them
Signed-off-by: Pavel Grunt <pgrunt at redhat.com>
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
diff --git a/server/tests/spice-options-test.c b/server/tests/spice-options-test.c
index e762461..72ec215 100644
--- a/server/tests/spice-options-test.c
+++ b/server/tests/spice-options-test.c
@@ -26,7 +26,7 @@
#define g_assert_nonnull g_assert
#endif
-int main(int argc, char *argv[])
+static void agent_options(void)
{
SpiceCoreInterface *core ;
SpiceServer *server = spice_server_new();
@@ -49,6 +49,13 @@ int main(int argc, char *argv[])
spice_server_set_agent_file_xfer(server, 0);
spice_server_destroy(server);
+}
+
+int main(int argc, char *argv[])
+{
+ g_test_init(&argc, &argv, NULL);
+
+ g_test_add_func("/server/agent options", agent_options);
- return 0;
+ return g_test_run();
}
More information about the Spice-commits
mailing list