}
static void
-test_g_static_rw_lock ()
+test_g_static_rw_lock (void)
{
GThread *threads[THREADS];
guint i;
}
/* run all the tests */
-void
-run_all_tests()
+static void
+run_all_tests (void)
{
test_g_mutex ();
test_g_static_rec_mutex ();
main (int argc,
char *argv[])
{
- g_thread_init (NULL);
run_all_tests ();
/* Now we rerun all tests, but this time we fool the system into
g_thread_use_default_impl = FALSE;
run_all_tests ();
-
+
+ /* XXX: And this shows how silly the above non-native tests are */
+ g_static_rw_lock_free (&test_g_static_rw_lock_lock);
+ g_static_rec_mutex_free (&test_g_static_rec_mutex_mutex);
+ g_static_private_free (&test_g_static_private_private2);
+
return 0;
}