mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-08 10:14:04 +02:00
glib/tests/include: port to gtester
https://bugzilla.gnome.org/show_bug.cgi?id=711796
This commit is contained in:
committed by
Matthias Clasen
parent
a9d93ca1df
commit
f733075cd1
@@ -6,13 +6,21 @@
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
int
|
static void
|
||||||
main (int argc, char *argv[])
|
test_rwlock (void)
|
||||||
{
|
{
|
||||||
GRWLock lock;
|
GRWLock lock;
|
||||||
|
|
||||||
g_rw_lock_init (&lock);
|
g_rw_lock_init (&lock);
|
||||||
g_rw_lock_clear (&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 ();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user