From mboxrd@z Thu Jan 1 00:00:00 1970 From: tim.gore@intel.com Subject: [PATCH] intel-gpu-tools: skip gem_mmap_offset_exhaustion on Android Date: Fri, 25 Jul 2014 10:00:19 +0100 Message-ID: <1406278819-8464-1-git-send-email-tim.gore@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by gabe.freedesktop.org (Postfix) with ESMTP id 354336E2F3 for ; Fri, 25 Jul 2014 02:00:23 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org Cc: daniel.vetter@ffwll.ch List-Id: intel-gfx@lists.freedesktop.org From: Tim Gore gem_mmap_offset_exhaustion relies on purgeable memory allocations getting swapped out, freeing up physical memory for further allocations. On Android we have no swap partition so this cannot happen and the test gets killed by the low memory killer before mmap offset exhaustion can happen, thus defeating the tests purpose. Signed-off-by: Tim Gore --- tests/gem_mmap_offset_exhaustion.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/gem_mmap_offset_exhaustion.c b/tests/gem_mmap_offset_exhaustion.c index 914fe6e..016143d 100644 --- a/tests/gem_mmap_offset_exhaustion.c +++ b/tests/gem_mmap_offset_exhaustion.c @@ -77,6 +77,10 @@ igt_simple_main { int fd, i; +#ifdef ANDROID + igt_skip("Test not valid on Android\n"); +#endif + igt_skip_on_simulation(); fd = drm_open_any(); -- 1.9.2