From 64cfe4eefe9b91ad648df216ba385d9a1e67dd78 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Thu, 19 Sep 2013 19:56:03 +0200 Subject: 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 --- tests/gem_storedw_batches_loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/gem_storedw_batches_loop.c') diff --git a/tests/gem_storedw_batches_loop.c b/tests/gem_storedw_batches_loop.c index ce5ee556..d6cd216f 100644 --- a/tests/gem_storedw_batches_loop.c +++ b/tests/gem_storedw_batches_loop.c @@ -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); -- cgit v1.2.3