diff options
author | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-12-17 15:23:42 +0000 |
---|---|---|
committer | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-12-17 15:23:42 +0000 |
commit | 1f80116482b1f158838d690c9a4f2989818769bc (patch) | |
tree | 2544192bed5077418a74847bf2dd7cdb581ab683 /tests | |
parent | d10cb56372f8da86ef11dba376c40b61aef5fa49 (diff) | |
download | libcg-1f80116482b1f158838d690c9a4f2989818769bc.tar.gz libcg-1f80116482b1f158838d690c9a4f2989818769bc.tar.xz libcg-1f80116482b1f158838d690c9a4f2989818769bc.zip |
libcgroup Test: add message
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libcgrouptest.h | 2 | ||||
-rw-r--r-- | tests/libcgrouptest01.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/libcgrouptest.h b/tests/libcgrouptest.h index 1e5295d..925a5a9 100644 --- a/tests/libcgrouptest.h +++ b/tests/libcgrouptest.h @@ -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 */ diff --git a/tests/libcgrouptest01.c b/tests/libcgrouptest01.c index 07bb543..766dc98 100644 --- a/tests/libcgrouptest01.c +++ b/tests/libcgrouptest01.c @@ -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; |