summaryrefslogtreecommitdiff
path: root/tests/gem_ctx_thrash.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-07-29 14:51:34 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-07-29 14:57:01 +0100
commit53b4dfdf157b38e459f5c0a6d30a3356b158a127 (patch)
tree5140ead4a44c3e182d9b60b169358c5dd22e6faf /tests/gem_ctx_thrash.c
parent5c1036200871511fea4535e2e4c1519c78fc86ac (diff)
tests: Skip if we cannot reserve infinite fd for ourselves
A few tests rely on being able to allocate an "infinite" number of fd, but current assert instead of skip on more restrictive kernels. References: https://bugs.freedesktop.org/show_bug.cgi?id=97125 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_ctx_thrash.c')
-rw-r--r--tests/gem_ctx_thrash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_ctx_thrash.c b/tests/gem_ctx_thrash.c
index 8990312c..e9708471 100644
--- a/tests/gem_ctx_thrash.c
+++ b/tests/gem_ctx_thrash.c
@@ -269,7 +269,7 @@ static void processes(void)
rlim.rlim_cur = ALIGN(num_ctx + 1024, 1024);
if (rlim.rlim_cur > rlim.rlim_max)
rlim.rlim_max = rlim.rlim_cur;
- igt_assert(setrlimit(RLIMIT_NOFILE, &rlim) == 0);
+ igt_require(setrlimit(RLIMIT_NOFILE, &rlim) == 0);
}
fds = malloc(num_ctx * sizeof(int));