aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2011-07-27 17:29:38 -0700
committerIan Romanick <ian.d.romanick@intel.com>2011-08-19 09:24:32 -0700
commitb8d9633830c67f76e9a3cbc17b45c3f226259537 (patch)
treea746f5e6fc1e116215d9eb64dcf7a5dc161a0e05 /CMakeLists.txt
parent8101d45b76523be5a1f065eb7fdc3a6e236e53d0 (diff)
downloadpiglit-b8d9633830c67f76e9a3cbc17b45c3f226259537.tar.gz
Add piglit_set_rlimit utility function
This function sets the maximum amount of memory that a process can have in its address space. This is useful for tests that use "infinite" memory on failing implementations. Setting this low can prevent the test from exhausting system memory and adversely affecting other tests. Acked-by: José Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dab4cfdf..aafe8b1b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -96,8 +96,11 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO ${piglit_BINARY_DIR}/bin)
check_function_exists(strchrnul HAVE_STRCHRNUL)
check_function_exists(fopen_s HAVE_FOPEN_S)
+check_function_exists(setrlimit HAVE_SETRLIMIT)
+check_include_file(sys/time.h HAVE_SYS_TIME_H)
check_include_file(sys/types.h HAVE_SYS_TYPES_H)
+check_include_file(sys/resource.h HAVE_SYS_RESOURCE_H)
check_include_file(sys/stat.h HAVE_SYS_STAT_H)
check_include_file(unistd.h HAVE_UNISTD_H)
check_include_file(fcntl.h HAVE_FCNTL_H)