From 1f80116482b1f158838d690c9a4f2989818769bc Mon Sep 17 00:00:00 2001 From: Balbir Singh Date: Wed, 17 Dec 2008 15:23:42 +0000 Subject: 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 git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@279 4f4bb910-9a46-0410-90c8-c897d4f1cd53 --- tests/libcgrouptest.h | 2 +- tests/libcgrouptest01.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 #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; -- cgit