diff options
author | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-12-17 15:17:24 +0000 |
---|---|---|
committer | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-12-17 15:17:24 +0000 |
commit | 1a61c6f7fb1fb2b9f0092408e024dce34cc49900 (patch) | |
tree | 4dbc33e8f66bab119b056c605df6fec0e8aea4fa /tests/libcgrouptest01.c | |
parent | 8eaae035d1762d5ab3624a7104f4154770434b00 (diff) | |
download | libcg-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/libcgrouptest01.c')
-rw-r--r-- | tests/libcgrouptest01.c | 4 |
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; } |