summaryrefslogtreecommitdiff
path: root/tests/gem_cs_prefetch.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-01-10 09:21:15 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-01-10 09:24:33 +0100
commitcb9e8376fac2c96c2e6bffa511b3087d916286d0 (patch)
tree35342714fdfb9ad61b1e6a9abe972c217e0a214a /tests/gem_cs_prefetch.c
parent7775fca2df815dfee18b181de6fe13df27bb9867 (diff)
tests: fixup igt_simple_main fallout
Oops, I should look at compilier warnings a bit better. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_cs_prefetch.c')
-rw-r--r--tests/gem_cs_prefetch.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/gem_cs_prefetch.c b/tests/gem_cs_prefetch.c
index ef0cdf14..9ff65732 100644
--- a/tests/gem_cs_prefetch.c
+++ b/tests/gem_cs_prefetch.c
@@ -107,10 +107,8 @@ igt_simple_main
aper_size = gem_aperture_size(fd);
/* presume a big per-bo overhead */
- if (intel_get_total_ram_mb() < (aper_size / (1024*1024)) * 3 / 2) {
- fprintf(stderr, "not enough mem to run test\n");
- return 77;
- }
+ igt_skip_on_f(intel_get_total_ram_mb() < (aper_size / (1024*1024)) * 3 / 2,
+ "not enough mem to run test\n");
count = aper_size / 4096;