getrusage03: disable the test when kernel before 2.6.32

Kernel commit 1f10206c is first introduced in 2.6.32, this
ru_maxrss behaviors will not be supported before kernel 2.6.32,
so disable the test when kernel version is before 2.6.32.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Reviewed-by: Jan Stancek <jstancek@redhat.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
diff --git a/testcases/kernel/syscalls/getrusage/getrusage03.c b/testcases/kernel/syscalls/getrusage/getrusage03.c
index 202356c..5d82a94 100644
--- a/testcases/kernel/syscalls/getrusage/getrusage03.c
+++ b/testcases/kernel/syscalls/getrusage/getrusage03.c
@@ -346,6 +346,13 @@
 
 static void setup(void)
 {
+	/* Disable test if the version of the kernel is less than 2.6.32 */
+	if ((tst_kvercmp(2, 6, 32)) < 0) {
+		tst_resm(TCONF, "This ru_maxrss field is not supported");
+		tst_resm(TCONF, "before kernel 2.6.32");
+		tst_exit();
+	}
+
 	tst_sig(FORK, DEF_HANDLER, cleanup);
 
 	TEST_PAUSE;