summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBalbir Singh <balbir@linux.vnet.ibm.com>2008-12-17 15:17:24 +0000
committerBalbir Singh <balbir@linux.vnet.ibm.com>2008-12-17 15:17:24 +0000
commit1a61c6f7fb1fb2b9f0092408e024dce34cc49900 (patch)
tree4dbc33e8f66bab119b056c605df6fec0e8aea4fa /tests
parent8eaae035d1762d5ab3624a7104f4154770434b00 (diff)
downloadlibcg-1a61c6f7fb1fb2b9f0092408e024dce34cc49900.tar.gz
libcg-1a61c6f7fb1fb2b9f0092408e024dce34cc49900.tar.xz
libcg-1a61c6f7fb1fb2b9f0092408e024dce34cc49900.zip
libcgroup Test: libcgrouptest-fix-to-empty-extra-string-and-add-a-new-warning
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@265 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'tests')
-rw-r--r--tests/libcgrouptest01.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/libcgrouptest01.c b/tests/libcgrouptest01.c
index e1c93e8..bc994ab 100644
--- a/tests/libcgrouptest01.c
+++ b/tests/libcgrouptest01.c
@@ -635,6 +635,8 @@ int main(int argc, char *argv[])
else
message(++i, FAIL, "create_cgroup()", retval, extra);
+ strncpy(extra, "\n", SIZE);
+
/*
* Test06: Call cgroup_attach_task() with a group with ctl1
* controller and check if return values are correct. If yes
@@ -1106,6 +1108,8 @@ static int set_controller(int controller, char *controller_name,
/* Future controllers can be added here */
default:
+ printf("Invalid controller name passed. Setting controller"
+ " failed. Dependent tests may fail\n");
return 1;
break;
}