test-ippool: Update unit test printouts
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 19 Mar 2013 12:33:23 +0000 (14:33 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 19 Mar 2013 13:49:44 +0000 (15:49 +0200)
unit/test-ippool.c

index 2df8561..07456d5 100644 (file)
@@ -39,7 +39,7 @@
 #define LOG(fmt, arg...)
 #endif
 
-static void test_ippool_basic0(void)
+static void test_case_1(void)
 {
        struct connman_ippool *pool;
        int i;
@@ -59,7 +59,7 @@ static void test_ippool_basic0(void)
        __connman_ippool_cleanup();
 }
 
-static void test_ippool_basic1(void)
+static void test_case_2(void)
 {
        struct connman_ippool *pool;
        const char *gateway;
@@ -98,7 +98,7 @@ static void test_ippool_basic1(void)
        __connman_ippool_cleanup();
 }
 
-static void test_ippool_exhaust0(void)
+static void test_case_3(void)
 {
        struct connman_ippool *pool;
        const char *gateway;
@@ -171,7 +171,7 @@ static void collision_cb(struct connman_ippool *pool, void *user_data)
        *flag = 1;
 }
 
-static void test_ippool_collision0(void)
+static void test_case_4(void)
 {
        struct connman_ippool *pool;
        const char *gateway;
@@ -249,10 +249,10 @@ int main(int argc, char *argv[])
 {
        g_test_init(&argc, &argv, NULL);
 
-       g_test_add_func("/basic0", test_ippool_basic0);
-       g_test_add_func("/basic1", test_ippool_basic1);
-       g_test_add_func("/exhaust0", test_ippool_exhaust0);
-       g_test_add_func("/collision0", test_ippool_collision0);
+       g_test_add_func("/ippool/Test case 1", test_case_1);
+       g_test_add_func("/ippool/Test case 2", test_case_2);
+       g_test_add_func("/ippool/Test case 3", test_case_3);
+       g_test_add_func("/ippool/Test case 4", test_case_4);
 
        return g_test_run();
 }