diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-11-27 01:37:59 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-11-27 01:37:59 +0100 |
commit | 8c7f8bcccbbb8cdd75aaa2f5084f7667f4279ea8 (patch) | |
tree | dd2e6a894d6e552cb96bff71db128c4e4d8be0b5 /tests/gem_storedw_batches_loop.c | |
parent | 2f56e9617703466aaac79c8763974cea6b233933 (diff) |
tests: properly terminate tests when values mismatch
Not much use running them in the test rig otherwise.
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_storedw_batches_loop.c')
-rw-r--r-- | tests/gem_storedw_batches_loop.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/gem_storedw_batches_loop.c b/tests/gem_storedw_batches_loop.c index 5ee0cee3..23c61790 100644 --- a/tests/gem_storedw_batches_loop.c +++ b/tests/gem_storedw_batches_loop.c @@ -106,10 +106,12 @@ store_dword_loop(void) drm_intel_bo_map(target_bo, 1); buf = target_bo->virtual; - if (buf[0] != (0x42000000 | val)) + if (buf[0] != (0x42000000 | val)) { fprintf(stderr, "value mismatch: cur 0x%08x, stored 0x%08x\n", buf[0], 0x42000000 | val); + exit(-1); + } buf[0] = 0; /* let batch write it again */ drm_intel_bo_unmap(target_bo); |