[Piglit] [PATCH 09/16] tests/fbo-storage-formats: Always print the same number of subtests

Fabian Bieler fabianbieler at fastmail.fm
Mon Jan 29 00:22:19 UTC 2018


From: Dylan Baker <dylan at pnwbakers.com>

!skip -> skip won't show up in the regressions/fixes/etc lists anyway,
and this means that the output will always be the same.
---
 tests/fbo/fbo-storage-formats.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/fbo/fbo-storage-formats.c b/tests/fbo/fbo-storage-formats.c
index 3ecd07a76..91b80e09d 100644
--- a/tests/fbo/fbo-storage-formats.c
+++ b/tests/fbo/fbo-storage-formats.c
@@ -223,6 +223,12 @@ test(void)
 				piglit_report_subtest_result(PIGLIT_PASS, "%s", name);
 			}
 		}
+	} else {
+		printf("Skipping error tests because KHR_NO_ERROR is enabled\n");
+		for (i = 0; i < ARRAY_SIZE(invalid_formats); i++) {
+			const char *name = piglit_get_gl_enum_name(invalid_formats[i]);
+			piglit_report_subtest_result(PIGLIT_SKIP, "%s", name);
+		}
 	}
 
 	return pass ? PIGLIT_PASS : PIGLIT_FAIL;
-- 
2.15.1



More information about the Piglit mailing list