diff --git a/tests/gem_shrink.c b/tests/gem_shrink.c index 136afa90..44b6acbc 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;