summaryrefslogtreecommitdiff
path: root/tests/prime_self_import.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/prime_self_import.c')
-rw-r--r--tests/prime_self_import.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/prime_self_import.c b/tests/prime_self_import.c
index eb9ab065..582c375c 100644
--- a/tests/prime_self_import.c
+++ b/tests/prime_self_import.c
@@ -61,9 +61,9 @@ check_bo(int fd1, uint32_t handle1, int fd2, uint32_t handle2)
int i;
ptr1 = gem_mmap__gtt(fd1, handle1, BO_SIZE, PROT_READ | PROT_WRITE);
- ptr2 = gem_mmap__gtt(fd2, handle2, BO_SIZE, PROT_READ | PROT_WRITE);
-
igt_assert(ptr1);
+ ptr2 = gem_mmap__gtt(fd2, handle2, BO_SIZE, PROT_READ | PROT_WRITE);
+ igt_assert(ptr2);
/* check whether it's still our old object first. */
for (i = 0; i < BO_SIZE; i++) {