[Piglit] [PATCH 5/6] shader_runner: Add rlimit option for shader tests
Ian Romanick
idr at freedesktop.org
Wed Jul 27 17:50:48 PDT 2011
From: Ian Romanick <ian.d.romanick at intel.com>
---
tests/shaders/shader_runner.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 7de0603..df65c24 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -414,6 +414,19 @@ process_requirement(const char *line)
gl_version);
piglit_report_result(PIGLIT_SKIP);
}
+ } else if (strncmp("rlimit", line, 6) == 0) {
+ unsigned long lim;
+ char *ptr;
+
+ line = eat_whitespace(line + 6);
+
+ lim = strtoul(line, &ptr, 0);
+ if (ptr == line) {
+ printf("rlimit requires numeric argument\n");
+ piglit_report_result(PIGLIT_FAIL);
+ }
+
+ piglit_set_rlimit(lim);
}
}
--
1.7.4.4
More information about the Piglit
mailing list