From: Balbir Singh Date: Wed, 17 Dec 2008 15:21:02 +0000 (+0000) Subject: libcgroup Test: libcgrouptest-fix-cntlr-order-error-in-script X-Git-Tag: v0.34~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=605aab868944e847b679093a7fbd542053b76d31;p=thirdparty%2Flibcgroup.git 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 git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@273 4f4bb910-9a46-0410-90c8-c897d4f1cd53 --- diff --git a/tests/libcgrouptest.h b/tests/libcgrouptest.h index 0b104157..c04eaa66 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 843b44b6..c34ca0a2 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;