lib/drmtest: Improve printf-like igt_skip_on/require

Ben Widawsky suggested to use vasprintf, which perfectly fits the bill.

Also fix the logic conversion bug in tests/gem_storedw_batches_loop that
crept in again :(

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2013-09-19 19:56:03 +02:00
parent e5cdd62624
commit 64cfe4eefe
2 changed files with 7 additions and 11 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ store_dword_loop(int divider, unsigned flags)
drm_intel_bo_map(target_bo, 1);
buf = target_bo->virtual;
igt_assert_f(buf[0] != (0x42000000 | val),
igt_assert_f(buf[0] == (0x42000000 | val),
"value mismatch: cur 0x%08x, stored 0x%08x\n",
buf[0], 0x42000000 | val);