[Piglit] [PATCH] shader_runner: report PIGLIT_FAIL if linking unexpectedly fails

Brian Paul brianp at vmware.com
Wed Oct 19 00:18:55 UTC 2016


We were previously reporting 'pass' if linking failed.

v2: return the result of program_must_be_in_use(), per Dylan.
---
 tests/shaders/shader_runner.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index b0bde2c..598a859 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -3528,7 +3528,7 @@ piglit_display(void)
 	}
 
 	if (!link_ok && !link_error_expected) {
-		program_must_be_in_use();
+		full_result = program_must_be_in_use();
 	}
 
 	piglit_present_results();
-- 
1.9.1



More information about the Piglit mailing list