[Intel-gfx] [PATCH] tests/gem_tiled_swapping: Fix up L-shaped testing

Daniel Vetter daniel.vetter at ffwll.ch
Mon Mar 23 03:01:24 PDT 2015


I've fumbled this, resulting in this this skipping everywhere.
Unfortunately no QA test report for this regression ...

Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
 tests/gem_tiled_swapping.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/gem_tiled_swapping.c b/tests/gem_tiled_swapping.c
index 2361dfcf76a3..072bf9a528fb 100644
--- a/tests/gem_tiled_swapping.c
+++ b/tests/gem_tiled_swapping.c
@@ -169,7 +169,7 @@ static void check_memory_layout(void)
 	igt_assert(tiling_debugfs_file);
 
 	while (getline(&line, &sz, tiling_debugfs_file) > 0) {
-		if (strstr(line, "L-shaped") != 0)
+		if (strstr(line, "L-shaped") == NULL)
 			continue;
 
 		igt_skip("L-shaped memory configuration detected\n");
-- 
1.9.3



More information about the Intel-gfx mailing list