mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 12:52:55 +00:00
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>
This commit is contained in:
@@ -72,10 +72,12 @@ store_dword_loop(void)
|
||||
drm_intel_bo_map(target_buffer, 0);
|
||||
|
||||
buf = target_buffer->virtual;
|
||||
if (buf[0] != val)
|
||||
if (buf[0] != val) {
|
||||
fprintf(stderr,
|
||||
"value mismatch: cur 0x%08x, stored 0x%08x\n",
|
||||
buf[0], val);
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
drm_intel_bo_unmap(target_buffer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user