From 9cff3be12731bf73bee15a545bee50377f307f55 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 4 Apr 2016 16:24:47 +0100 Subject: igt/gem_shrink: Reduce oom spam Since we are deliberately going to fail the mmap() allocation, don't assert. Signed-off-by: Chris Wilson --- tests/gem_shrink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/gem_shrink.c b/tests/gem_shrink.c index 136afa9078ce..44b6acbc5158 100644 --- a/tests/gem_shrink.c +++ b/tests/gem_shrink.c @@ -202,7 +202,8 @@ static void leak(int fd, uint64_t alloc) ptr = mmap(NULL, alloc, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE | MAP_POPULATE, -1, 0); - igt_assert(ptr != (char *)-1); + if (ptr != (char *)-1) + return; while (alloc) { alloc -= 4096; -- cgit v1.2.3