summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2016-04-23 16:47:16 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2016-06-20 12:39:44 +0200
commit8f15bf5bca5ac71342acc3908a6c90dcb9deab0f (patch)
tree095731c002e4469f961ea4b59a742c7bfe38b582
parent8d03cd8f6e01d2f0c07d7765e5048a2948813f0e (diff)
downloadlibrest-8f15bf5bca5ac71342acc3908a6c90dcb9deab0f.tar.gz
tests/custom-serialize: Port to GTest api
-rw-r--r--tests/custom-serialize.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/custom-serialize.c b/tests/custom-serialize.c
index 1711d68..c3fde93 100644
--- a/tests/custom-serialize.c
+++ b/tests/custom-serialize.c
@@ -121,8 +121,8 @@ server_func (gpointer data)
return NULL;
}
-int
-main (int argc, char **argv)
+static void
+test_custom_serialize ()
{
RestProxy *proxy;
RestProxyCall *call;
@@ -146,6 +146,13 @@ main (int argc, char **argv)
g_object_unref (call);
g_object_unref (proxy);
g_free (url);
+}
+
+int
+main (int argc, char **argv)
+{
+ g_test_init (&argc, &argv, NULL);
+ g_test_add_func ("/custom-serialize/custom-serialize", test_custom_serialize);
- return 0;
+ return g_test_run ();
}