diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libcgrouptest01.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/libcgrouptest01.c b/tests/libcgrouptest01.c index 80d8951..e144e6c 100644 --- a/tests/libcgrouptest01.c +++ b/tests/libcgrouptest01.c @@ -240,8 +240,16 @@ int main(int argc, char *argv[]) retval = set_controller(MEMORY, controller_name, control_file); strncpy(val_string, "40960000", sizeof(val_string)); - if (retval) - fprintf(stderr, "Setting controller failled\n"); + if (retval) { + retval = set_controller(CPU, controller_name, + control_file); + strncpy(val_string, "2048", sizeof(val_string)); + if (retval) { + fprintf(stderr, "Failed to set any controllers " + "Tests dependent on this structure will" + " fail\n"); + } + } cgroup1 = new_cgroup(group, controller_name, control_file, STRING); |