[Piglit] [PATCH] fbo-depth-array: Fix reporting the piglit_result
Neil Roberts
neil at linux.intel.com
Mon Nov 30 04:19:07 PST 2015
test_once was ignoring the return value of draw_and_test_layer so the
test would report a pass even if it failed.
Reported-by: Marek Olšák <maraeo at gmail.com>
---
Oops, sorry about that. Thanks for reporting it.
tests/fbo/fbo-depth-array.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/fbo/fbo-depth-array.c b/tests/fbo/fbo-depth-array.c
index b0acd5e..45c8b3b 100644
--- a/tests/fbo/fbo-depth-array.c
+++ b/tests/fbo/fbo-depth-array.c
@@ -446,7 +446,7 @@ test_once(void)
x = 1 + (layer % 3) * (width + 1);
y = 1 + (layer / 3) * (height + 1);
}
- draw_and_test_layer(x, y, layer);
+ pass = draw_and_test_layer(x, y, layer) && pass;
if (piglit_use_fbo && !test_single_size && layer < layers-1) {
glClearColor(0.2, 0.1, 0.1, 1.0);
--
1.9.3
More information about the Piglit
mailing list