summaryrefslogtreecommitdiff
path: root/tests/gem_sync.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-07-05 21:28:21 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-07-05 21:29:22 +0100
commit2202b064d8089db1092903771bafc7272719a6fe (patch)
tree4ff30a6ee6290a4a1cac6c511cb3ba180a0adcd4 /tests/gem_sync.c
parent3ef6913e0fc1c5540bbe32263fde25c2331a8545 (diff)
igt/gem_sync: Fix many_store() for printing out a single engine
The name for a single engine was unset, oops. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_sync.c')
-rw-r--r--tests/gem_sync.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/gem_sync.c b/tests/gem_sync.c
index 73479f5d..7e79e49d 100644
--- a/tests/gem_sync.c
+++ b/tests/gem_sync.c
@@ -494,7 +494,8 @@ store_many(int fd, unsigned ring, int timeout)
} else {
gem_require_ring(fd, ring);
igt_require(can_mi_store_dword(gen, ring));
- __store_many(fd, ring, timeout, &shared[n++]);
+ __store_many(fd, ring, timeout, &shared[n]);
+ names[n++] = NULL;
}
for (int i = 0; i < n; i++) {
@@ -502,6 +503,7 @@ store_many(int fd, unsigned ring, int timeout)
names[i] ?: "", names[i] ? " c" : "C", shared[i]);
}
igt_assert_eq(intel_detect_and_clear_missed_interrupts(fd), 0);
+ munmap(shared, 4096);
}
static void