[08/15] tests/fbo-storage-formats: Always print the same number of subtests

Submitted by Dylan Baker on Jan. 23, 2018, 1:22 a.m.

Details

Message ID 2592cd4d48ff459948575e83b2c11ad77cd9807b.1516670408.git-series.dylan@pnwbakers.com
State New
Headers show
Series "Series without cover letter" ( rev: 6 ) in Piglit

Not browsing as part of any series.

Commit Message

Dylan Baker Jan. 23, 2018, 1:22 a.m.
!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(+)

Patch hide | download patch | download mbox

diff --git a/tests/fbo/fbo-storage-formats.c b/tests/fbo/fbo-storage-formats.c
index 3ecd07a..91b80e0 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;