]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
libcgroup Test: add message
authorBalbir Singh <balbir@linux.vnet.ibm.com>
Wed, 17 Dec 2008 15:23:42 +0000 (15:23 +0000)
committerBalbir Singh <balbir@linux.vnet.ibm.com>
Wed, 17 Dec 2008 15:23:42 +0000 (15:23 +0000)
This patch fixes the NUM_MSGS error which was still 10, however there
are more type of messages to be printed. It also adds the support to just
print a new line in case there is no message to be printed.

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

tests/libcgrouptest.h
tests/libcgrouptest01.c

index 1e5295d9e0c2ba92c65f6e1e61c850b56a953ae7..925a5a99118450aa07560ff4daf6f6461de9c3d7 100644 (file)
@@ -30,7 +30,7 @@
 #include <libcgroup.h>
 
 #define SIZE 100       /* Max size of a message to be printed */
-#define NUM_MSGS 10    /* Number of such messsages */
+#define NUM_MSGS 20    /* Number of such messsages */
 #define PASS 1         /* test passed */
 #define FAIL 0         /* test failed */
 
index 07bb54363a43478cc4d96b6d83c5cb4e2cd4e57c..766dc986767ba8b721a5a177448d34e6de5586df 100644 (file)
@@ -1361,6 +1361,9 @@ void set_info_msgs()
                case 15:
                        strncpy(info[k], " Group not deleted globaly\n", SIZE);
                        break;
+               case 19:
+                       strncpy(info[k], " \n", SIZE);
+                       break;
                /* Add more messages here and change NUM_MSGS */
                default:
                        break;