]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
libcgroup: adds warning messages in libcgroup testcases
authorDhaval Giani <dhaval@linux.vnet.ibm.com>
Mon, 22 Dec 2008 18:55:33 +0000 (18:55 +0000)
committerDhaval Giani <dhaval@linux.vnet.ibm.com>
Mon, 22 Dec 2008 18:55:33 +0000 (18:55 +0000)
From: Sudhir Kumar <skumar@linux.vnet.ibm.com>

This patch adds few more warning messages in the message pool

Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@285 4f4bb910-9a46-0410-90c8-c897d4f1cd53

tests/libcgrouptest01.c

index b0a9bd99891e6b69dde2224fe9ba48908684070a..468a3aa47ce5154568827217fda59d9a85def101 100644 (file)
@@ -1349,36 +1349,42 @@ void set_info_msgs()
                                                        " groups\n", SIZE);
                        break;
                case 7:
+                       strncpy(info[k], " group found in filesystem\n", SIZE);
+                       break;
+               case 8:
+                       strncpy(info[k], " group not in filesystem\n", SIZE);
+                       break;
+               case 9:
                        strncpy(info[k], " group found under both"
                                                " controllers\n", SIZE);
                        break;
-               case 8:
+               case 10:
                        strncpy(info[k], " group not found under"
                                                " second controller\n", SIZE);
                        break;
-               case 9:
+               case 11:
                        strncpy(info[k], " group not found under"
-                                               " any controller\n", SIZE);
+                                               " first controller\n", SIZE);
                        break;
-               case 10:
+               case 12:
                        strncpy(info[k], " group modified under"
                                                " both controllers\n", SIZE);
                        break;
-               case 11:
+               case 13:
                        strncpy(info[k], " group not modified under"
                                                " second controller\n", SIZE);
                        break;
-               case 12:
+               case 14:
                        strncpy(info[k], " group not modified under"
                                                " any controller\n", SIZE);
                        break;
-               case 13:
+               case 15:
                        strncpy(info[k], " Group deleted from fs\n", SIZE);
                        break;
-               case 14:
+               case 16:
                        strncpy(info[k], " Group not deleted from fs\n", SIZE);
                        break;
-               case 15:
+               case 17:
                        strncpy(info[k], " Group not deleted globaly\n", SIZE);
                        break;
                /* In case there is no extra info messages to be printed */