From 1a61c6f7fb1fb2b9f0092408e024dce34cc49900 Mon Sep 17 00:00:00 2001 From: Balbir Singh Date: Wed, 17 Dec 2008 15:17:24 +0000 Subject: 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 --- tests/libcgrouptest01.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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; } -- cgit