diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test-mock.c | 2 | ||||
-rw-r--r-- | test/test-ring-buffer.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/test/test-mock.c b/test/test-mock.c index 10c0a36..facae53 100644 --- a/test/test-mock.c +++ b/test/test-mock.c @@ -223,7 +223,9 @@ test_signal (Fixture *fixture, gconstpointer data) int main (int argc, char *argv[]) { +#if !(GLIB_CHECK_VERSION (2, 36, 0)) g_type_init (); +#endif g_test_init (&argc, &argv, NULL); g_test_bug_base ("http://ufo.kit.edu/ufo/ticket"); diff --git a/test/test-ring-buffer.c b/test/test-ring-buffer.c index b9ff210..e868cd4 100644 --- a/test/test-ring-buffer.c +++ b/test/test-ring-buffer.c @@ -53,7 +53,7 @@ test_ring (void) uca_ring_buffer_write_advance (buffer); g_assert (uca_ring_buffer_get_num_blocks (buffer) == 2); - + data = uca_ring_buffer_get_read_pointer (buffer); g_assert (data[0] == 0xBADF00D); @@ -89,7 +89,10 @@ test_overwrite (void) int main (int argc, char *argv[]) { +#if !(GLIB_CHECK_VERSION (2, 36, 0)) g_type_init (); +#endif + g_test_init (&argc, &argv, NULL); g_test_add_func ("/ringbuffer/new/constructor", test_new_constructor); |