summaryrefslogtreecommitdiff
path: root/tests/fbo
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2015-11-30 12:13:31 +0000
committerNeil Roberts <neil@linux.intel.com>2015-11-30 12:41:04 +0000
commitc9ffd8a6041f74d3cc5a423fb0b5966c9b1a867a (patch)
tree435b38e20cd065d0faf1e402cdc302e81ba01421 /tests/fbo
parentaef94dd92cec532d298eadea0bb881a054f5df3d (diff)
fbo-depth-array: Fix reporting the piglit_result
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 <marek.olsak@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'tests/fbo')
-rw-r--r--tests/fbo/fbo-depth-array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fbo/fbo-depth-array.c b/tests/fbo/fbo-depth-array.c
index b0acd5e6c..45c8b3b1d 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);