[glib] glib/tests/include: port to gtester
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] glib/tests/include: port to gtester
- Date: Sat, 23 Nov 2013 06:02:45 +0000 (UTC)
commit f733075cd13504fa1977a433cbad463f8900828e
Author: Dan Winship <danw gnome org>
Date: Sun Nov 10 13:22:46 2013 -0500
glib/tests/include: port to gtester
https://bugzilla.gnome.org/show_bug.cgi?id=711796
glib/tests/include.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/glib/tests/include.c b/glib/tests/include.c
index 0e8627b..1325266 100644
--- 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 ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]