Add check to see if cgroup fs mounting is available in kernel.

cgroup filesystem is used in testcases oom03 and oom04, but cgroup
filesystem is not supported in kernel older than 2.6.24.

Instead of just checking the version, we should check the appropriate
error after running mount(2) to also cover cases where cgroup support
wasn't compiled into the kernel with versions newer than 2.6.24.

Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
1 file changed