summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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;
}