mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 06:56:14 +01:00
Improve gtype test coverage
This commit is contained in:
parent
07168724d7
commit
db1c83a516
@ -150,6 +150,9 @@ main (int argc, char **argv)
|
||||
g_thread_join (thread);
|
||||
}
|
||||
|
||||
g_object_unref (test1);
|
||||
g_object_unref (test2);
|
||||
|
||||
g_print ("stopped\n");
|
||||
|
||||
return 0;
|
||||
|
@ -183,6 +183,8 @@ run_thread (GTest * test)
|
||||
}
|
||||
}
|
||||
|
||||
g_object_unref (test);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -193,5 +193,7 @@ main (int argc, char **argv)
|
||||
|
||||
g_assert (count == test->dummy);
|
||||
|
||||
g_object_unref (test);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -151,6 +151,7 @@ int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
MyBadger * badger1, * badger2;
|
||||
gpointer test;
|
||||
|
||||
g_print ("START: %s\n", argv[0]);
|
||||
g_log_set_always_fatal (G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL | g_log_set_always_fatal (G_LOG_FATAL_MASK));
|
||||
@ -161,6 +162,9 @@ main (int argc, char **argv)
|
||||
g_object_set (badger1, "mama", badger2, NULL);
|
||||
g_assert_cmpuint (badger1->mama_notify_count, ==, 1);
|
||||
g_assert_cmpuint (badger2->mama_notify_count, ==, 1);
|
||||
g_object_get (badger1, "mama", &test, NULL);
|
||||
g_assert (test == badger2);
|
||||
g_object_unref (test);
|
||||
|
||||
g_object_unref (badger1);
|
||||
g_object_unref (badger2);
|
||||
|
Loading…
Reference in New Issue
Block a user