diff options
| author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-04-26 11:21:10 +0100 |
|---|---|---|
| committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-04-26 11:21:54 +0100 |
| commit | 10f903aa23932e8bce383ee56db8aaefd73dfb28 (patch) | |
| tree | b4d98166d5069ca72493c21cc2fec5f2d2e42014 /tests | |
| parent | cd812a4e89db0150bfcff6d91ffffea37dc106c9 (diff) | |
igt/gem_pwrite: Check that mmap(wc) succeeds
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/gem_pwrite.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gem_pwrite.c b/tests/gem_pwrite.c index 4c223581..5b6a77fb 100644 --- a/tests/gem_pwrite.c +++ b/tests/gem_pwrite.c @@ -121,6 +121,8 @@ static void test_big_gtt(int fd, int scale) gem_set_domain(fd, handle, I915_GEM_DOMAIN_GTT, I915_GEM_DOMAIN_GTT); ptr = gem_mmap__wc(fd, handle, 0, size, PROT_READ); + igt_assert(ptr); + for (offset = 0; offset < size; offset += 4096) { int suboffset = (offset >> 12) % (4096 / sizeof(offset) - 1) * sizeof(offset); |
