projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9d93ca
)
glib/tests/include: port to gtester
author
Dan Winship
<danw@gnome.org>
Sun, 10 Nov 2013 18:22:46 +0000
(13:22 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 23 Nov 2013 05:39:07 +0000
(
00:39
-0500)
https://bugzilla.gnome.org/show_bug.cgi?id=711796
glib/tests/include.c
patch
|
blob
|
history
diff --git
a/glib/tests/include.c
b/glib/tests/include.c
index
0e8627b
..
1325266
100644
(file)
--- a/
glib/tests/include.c
+++ b/
glib/tests/include.c
@@
-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);
+}
+
+int
+main (int argc, char *argv[])
+{
+ g_test_init (&argc, &argv, NULL);
+
+ g_test_add_func ("/include/rwlock", test_rwlock);
- return
0
;
+ return
g_test_run ()
;
}