mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-30 09:46:50 +00:00
spice-options-test: Convert to gtest to catch criticals
Fail on glib warnings instead of ignoring them Signed-off-by: Pavel Grunt <pgrunt@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
6a3917f653
commit
2051007e05
@ -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);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
g_test_init(&argc, &argv, NULL);
|
||||
|
||||
g_test_add_func("/server/agent options", agent_options);
|
||||
|
||||
return g_test_run();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user