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:
@@ -119,10 +119,12 @@ store_pipe_control_loop(void)
|
||||
drm_intel_bo_map(target_bo, 1);
|
||||
|
||||
buf = target_bo->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);
|
||||
}
|
||||
buf[0] = 0; /* let batch write it again */
|
||||
drm_intel_bo_unmap(target_bo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user