diff options
author | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-12-17 15:21:02 +0000 |
---|---|---|
committer | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-12-17 15:21:02 +0000 |
commit | 605aab868944e847b679093a7fbd542053b76d31 (patch) | |
tree | 2d8982870f8e608f925a48f5b74a9856a3483d56 /tests | |
parent | 44f5dae655206be2040c2f927c6accb5e897555f (diff) | |
download | libcg-605aab868944e847b679093a7fbd542053b76d31.tar.gz libcg-605aab868944e847b679093a7fbd542053b76d31.tar.xz libcg-605aab868944e847b679093a7fbd542053b76d31.zip |
libcgroup Test: libcgrouptest-fix-cntlr-order-error-in-script
Sometimes on some machines, encounterd an issue of getting the controllers
information in reverse order. So keeping the uniformity for future.
Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@273 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libcgrouptest.h | 2 | ||||
-rw-r--r-- | tests/runlibcgrouptest.sh | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/libcgrouptest.h b/tests/libcgrouptest.h index 0b10415..c04eaa6 100644 --- a/tests/libcgrouptest.h +++ b/tests/libcgrouptest.h @@ -43,8 +43,8 @@ enum cgroup_mount_t { }; enum controller_t { - MEMORY, CPU, + MEMORY, CPUSET, /* Add new controllers here */ }; diff --git a/tests/runlibcgrouptest.sh b/tests/runlibcgrouptest.sh index 843b44b..c34ca0a 100644 --- a/tests/runlibcgrouptest.sh +++ b/tests/runlibcgrouptest.sh @@ -252,7 +252,7 @@ mount_fs () echo "WARN: Earlier groups found and removed..."; fi; - debug "cgroup filesystem mounted on $NEWTARGET directory" + debug "$CONTROLLERS controllers mounted on $NEWTARGET directory" done; if [ $FS_MOUNTED -gt 2 ] @@ -274,8 +274,8 @@ get_ctl_num() # Add any new controller developed here declare -a ctl_list; # Following list has to be in sync with enums in header - ctl_list[0]="memory"; - ctl_list[1]="cpu"; + ctl_list[0]="cpu"; + ctl_list[1]="memory"; ctl_list[2]="cpuset"; local i=0; |