Because we always want to have the same number of subtests printed, or
they'll show up as "NOTRUN" instead of "SKIP" in the summary.

Signed-off-by: Dylan Baker <dylan.c.ba...@intel.com>
---
 tests/fbo/fbo-storage-formats.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/fbo/fbo-storage-formats.c b/tests/fbo/fbo-storage-formats.c
index 9cf8c67..7f13684 100644
--- a/tests/fbo/fbo-storage-formats.c
+++ b/tests/fbo/fbo-storage-formats.c
@@ -190,8 +190,10 @@ test(void)
        for (i = 0; i < ARRAY_SIZE(formats); i++) {
                const char *name = piglit_get_gl_enum_name(formats[i].format);
 
-               if (!have_extension[formats[i].extension])
+               if (!have_extension[formats[i].extension]) {
+                       piglit_report_subtest_result(PIGLIT_SKIP, "%s", name);
                        continue;
+               }
 
                glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, formats[i].format,
                                         piglit_width, piglit_height);
-- 
git-series 0.9.1
_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to