glib/tests/include: port to gtester

https://bugzilla.gnome.org/show_bug.cgi?id=711796
This commit is contained in:
Dan Winship 2013-11-10 13:22:46 -05:00 committed by Matthias Clasen
parent a9d93ca1df
commit f733075cd1

View File

@ -6,13 +6,21 @@
#include <pthread.h>
#include <glib.h>
int
main (int argc, char *argv[])
static void
test_rwlock (void)
{
GRWLock lock;
g_rw_lock_init (&lock);
g_rw_lock_clear (&lock);
return 0;
}
int
main (int argc, char *argv[])
{
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/include/rwlock", test_rwlock);
return g_test_run ();
}