summaryrefslogtreecommitdiffstats
path: root/tests/libcgrouptest01.c
diff options
context:
space:
mode:
authorBalbir Singh <balbir@linux.vnet.ibm.com>2008-12-17 15:23:16 +0000
committerBalbir Singh <balbir@linux.vnet.ibm.com>2008-12-17 15:23:16 +0000
commitd10cb56372f8da86ef11dba376c40b61aef5fa49 (patch)
tree018951162bce6142ca4b0bde86284ffe871d0b54 /tests/libcgrouptest01.c
parented931c233d9b4d8064ec0a7176b309b5643b6271 (diff)
downloadlibcg-d10cb56372f8da86ef11dba376c40b61aef5fa49.tar.gz
libcg-d10cb56372f8da86ef11dba376c40b61aef5fa49.tar.xz
libcg-d10cb56372f8da86ef11dba376c40b61aef5fa49.zip
libcgroup Test: change control value
This patch changes the control values to be written to control file. The write of value 7000000 to memory.limt_in_bytes resulted in a silent write of 7000064, because of which modify() test case was failing. Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@278 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'tests/libcgrouptest01.c')
-rw-r--r--tests/libcgrouptest01.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/libcgrouptest01.c b/tests/libcgrouptest01.c
index 5439d4f..07bb543 100644
--- a/tests/libcgrouptest01.c
+++ b/tests/libcgrouptest01.c
@@ -649,7 +649,7 @@ int main(int argc, char *argv[])
*/
strncpy(group, "ctl2_group1", sizeof(group));
retval = set_controller(ctl2, controller_name, control_file);
- strncpy(val_string, "70000000", sizeof(val_string));
+ strncpy(val_string, "7000064", sizeof(val_string));
if (retval) {
fprintf(stderr, "Setting controller failled "
@@ -834,7 +834,7 @@ int main(int argc, char *argv[])
printf("The cgroup_modify_cgroup() test will fail\n");
}
- strncpy(val_string, "7000000", sizeof(val_string));
+ strncpy(val_string, "7000064", sizeof(val_string));
retval = cgroup_add_value_string(sec_controller,
control_file, val_string);
if (retval)
@@ -857,7 +857,7 @@ int main(int argc, char *argv[])
control_file);
build_path(path_control_file, mountpoint2,
"commongroup", control_file);
- strncpy(val_string, "7000000",
+ strncpy(val_string, "7000064",
sizeof(val_string));
if (!group_modified(path_control_file, STRING)) {
strncat(extra, " group modified under"