aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2012-12-20 15:40:39 -0800
committerEric Anholt <eric@anholt.net>2013-01-09 11:57:31 -0800
commit3e46942e60b91938453add82989f9f94f0f4fa9c (patch)
tree45066f390a85eecdd415d477694f24f9ac469f2a
parentdedc52871a6d144142c7fcd8c08a88f4a64cd74b (diff)
bindfragdata-link-error: Fix WARN report for a PIGLIT_PASS result.
By using the complain-loadly-if-link-error util function in the cases where we expect a link error, we ensured that this test could never report a pass in the summary.
-rw-r--r--tests/spec/gl-3.0/api/bindfragdata-link-error.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/spec/gl-3.0/api/bindfragdata-link-error.c b/tests/spec/gl-3.0/api/bindfragdata-link-error.c
index b074bd7a..52ee78e9 100644
--- a/tests/spec/gl-3.0/api/bindfragdata-link-error.c
+++ b/tests/spec/gl-3.0/api/bindfragdata-link-error.c
@@ -130,7 +130,7 @@ void piglit_init(int argc, char **argv)
if (!piglit_check_gl_error(GL_NO_ERROR))
piglit_report_result(PIGLIT_FAIL);
- if (piglit_link_check_status(prog)) {
+ if (piglit_link_check_status_quiet(prog)) {
fprintf(stderr,
"Linking was successful when it should have failed.\n");
piglit_report_result(PIGLIT_FAIL);
@@ -161,7 +161,7 @@ void piglit_init(int argc, char **argv)
if (!piglit_check_gl_error(GL_NO_ERROR))
piglit_report_result(PIGLIT_FAIL);
- if (piglit_link_check_status(prog)) {
+ if (piglit_link_check_status_quiet(prog)) {
fprintf(stderr,
"Linking was successful when it should have failed.\n");
piglit_report_result(PIGLIT_FAIL);
@@ -180,7 +180,7 @@ void piglit_init(int argc, char **argv)
if (!piglit_check_gl_error(GL_NO_ERROR))
piglit_report_result(PIGLIT_FAIL);
- if (piglit_link_check_status(prog)) {
+ if (piglit_link_check_status_quiet(prog)) {
fprintf(stderr,
"Linking was successful when it should have failed.\n");
piglit_report_result(PIGLIT_FAIL);