On 05/16/2012 08:52 AM, Ivana Hutarova Varekova wrote:
> testsuite: runlibcgrouptest.sh has too benevolent mount points parsing thus
> there are filtred other mount points (not only cgroup one) as well.
>
>
> Signed-off-by: Ivana Hutarova Varekova <[email protected]>
Acked-By: Jan Safranek <[email protected]>
> ---
>
> tests/runlibcgrouptest.sh | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/runlibcgrouptest.sh b/tests/runlibcgrouptest.sh
> index df1a921..12b9253 100755
> --- a/tests/runlibcgrouptest.sh
> +++ b/tests/runlibcgrouptest.sh
> @@ -48,7 +48,7 @@ debug()
> check_mount_fs ()
> {
> local NUM_MOUNT=0;
> - CGROUP=`cat /proc/mounts|grep -w cgroup|tr -s [:space:]|cut -d" " -f3`;
> + CGROUP=`cat /proc/mounts|grep -w ^cgroup|tr -s [:space:]|cut -d" " -f3`;
>
> # get first word in case of multiple mounts
> CGROUP=`echo $CGROUP|cut -d" " -f1`;
> @@ -56,7 +56,7 @@ check_mount_fs ()
> debug "check_mount_fs(): CGROUP is $CGROUP";
> if [ "$CGROUP" = "cgroup" ]
> then
> - NUM_MOUNT=`cat /proc/mounts|grep -w cgroup|wc -l`;
> + NUM_MOUNT=`cat /proc/mounts|grep -w ^cgroup|wc -l`;
> debug "check_mount_fs(): fs mounted at $NUM_MOUNT places";
>
> if [ $NUM_MOUNT -eq 1 ]
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Libcg-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libcg-devel
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel