[glib] glib/tests/atomic: convert to proper gtester test
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] glib/tests/atomic: convert to proper gtester test
- Date: Sun, 16 Oct 2011 23:23:48 +0000 (UTC)
commit f5e869478221387f915bb619892d68d10744ff65
Author: Ryan Lortie <desrt desrt ca>
Date: Sun Oct 16 19:01:55 2011 -0400
glib/tests/atomic: convert to proper gtester test
glib/tests/atomic.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/glib/tests/atomic.c b/glib/tests/atomic.c
index 52d429c..abacb6c 100644
--- a/glib/tests/atomic.c
+++ b/glib/tests/atomic.c
@@ -1,7 +1,7 @@
#include <glib.h>
-int
-main (void)
+static void
+test_types (void)
{
guint u, u2;
gint s, s2;
@@ -187,3 +187,13 @@ main (void)
return 0;
}
+
+int
+main (int argc, char **argv)
+{
+ g_test_init (&argc, &argv, NULL);
+
+ g_test_add_func ("/atomic/types", test_types);
+
+ return g_test_run ();
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]