public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/i915/gem_mmap_wc: Adjust loop to OBJECT_SIZE
@ 2019-02-07  8:08 Katarzyna Dec
  2019-02-07  8:11 ` Chris Wilson
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Katarzyna Dec @ 2019-02-07  8:08 UTC (permalink / raw)
  To: igt-dev

When we run test with INTEL_SIMULATION=1 we set OBJECT_SIZE
to 1M which is not reflected in test_close() loop.

Signed-off-by: Katarzyna Dec <katarzyna.dec@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Lukasz Kalamarz <lukasz.kalamarz@intel.com>
---
 tests/i915/gem_mmap_wc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/i915/gem_mmap_wc.c b/tests/i915/gem_mmap_wc.c
index 110883eb..bff0fa2a 100644
--- a/tests/i915/gem_mmap_wc.c
+++ b/tests/i915/gem_mmap_wc.c
@@ -285,7 +285,7 @@ test_close(int fd)
 
 	memset(ptr, 0xcc, OBJECT_SIZE);
 	gem_close(fd, handle);
-	for (i = 0; i < 4096; i++)
+	for (i = 0; i < OBJECT_SIZE/4096; i++)
 		igt_assert(ptr[i*4096+i] == 0xcc);
 
 	munmap(ptr, OBJECT_SIZE);
-- 
2.20.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-02-07 10:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-07  8:08 [igt-dev] [PATCH i-g-t] tests/i915/gem_mmap_wc: Adjust loop to OBJECT_SIZE Katarzyna Dec
2019-02-07  8:11 ` Chris Wilson
2019-02-07  8:34   ` Katarzyna Dec
2019-02-07  8:41     ` Chris Wilson
2019-02-07  8:41 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-02-07 10:30 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox