diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-08-12 15:29:25 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-08-12 15:34:12 +0100 |
commit | 2ce0691cd5237ebf06d617acb2a33d418178f883 (patch) | |
tree | 6a3409e71128137da96862cf119dd4a3efedb1c6 /tests | |
parent | eda904c9d787bd085be3803529c7f23f81ec174b (diff) |
igt/gem_cpu_reloc: Update the memory requirements
Use intel_check_memory() for accuracy and beautification
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gem_cpu_reloc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/gem_cpu_reloc.c b/tests/gem_cpu_reloc.c index 46183231..be7028fc 100644 --- a/tests/gem_cpu_reloc.c +++ b/tests/gem_cpu_reloc.c @@ -179,13 +179,12 @@ igt_simple_main } aper_size = gem_mappable_aperture_size(); - igt_skip_on_f(intel_get_total_ram_mb() < aper_size / (1024*1024) * 2, - "not enough mem to run test\n"); - count = aper_size / 4096 * 2; if (igt_run_in_simulation()) count = 10; + igt_require(intel_check_memory(1+count, 4096, CHECK_RAM)); + handles = malloc (count * sizeof(uint32_t)); igt_assert(handles); |