summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Rodriguez <andresx7@gmail.com>2017-12-21 14:58:18 -0500
committerAndres Rodriguez <andresx7@gmail.com>2018-01-30 15:23:47 -0500
commite66f21065b6a8b980c81c2e8a1591e971c7b29a3 (patch)
tree0e9c09c91ab7cb3cf59ce2f858641f23b6f71286
parenta4098680b7396990a1d31e935a3d362dba163b47 (diff)
ext_memory_object: remove redundant print on failure
Calling piglit_check_gl_error() already dumps the relevant debug information to stdout. Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
-rw-r--r--tests/spec/ext_memory_object/api-errors.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/tests/spec/ext_memory_object/api-errors.c b/tests/spec/ext_memory_object/api-errors.c
index 8cd197f33..15b4b1c43 100644
--- a/tests/spec/ext_memory_object/api-errors.c
+++ b/tests/spec/ext_memory_object/api-errors.c
@@ -84,12 +84,7 @@ test_tex_storage_errors(GLenum target, bool dsa)
*
* "An INVALID_VALUE error is generated if <memory> is 0 ..."
*/
- if (!piglit_check_gl_error(GL_INVALID_VALUE)) {
- printf("Fail: GL_INVALID_VALUE expected\n");
- return false;
- }
-
- return true;
+ return piglit_check_gl_error(GL_INVALID_VALUE);
}
static bool
@@ -134,12 +129,7 @@ test_tex_storage_ms_errors(GLenum target, bool dsa)
*
* "An INVALID_VALUE error is generated if <memory> is 0 ..."
*/
- if (!piglit_check_gl_error(GL_INVALID_VALUE)) {
- printf("Fail: GL_INVALID_VALUE expected\n");
- return false;
- }
-
- return true;
+ return piglit_check_gl_error(GL_INVALID_VALUE);
}
#define BUF_SIZE (12 * 4 * sizeof(float))
@@ -163,12 +153,7 @@ test_buffer_storage_errors(bool dsa)
*
* "An INVALID_VALUE error is generated if <memory> is 0 ..."
*/
- if (!piglit_check_gl_error(GL_INVALID_VALUE)) {
- printf("Fail: GL_INVALID_VALUE expected\n");
- return false;
- }
-
- return true;
+ return piglit_check_gl_error(GL_INVALID_VALUE);
}
#define X(f, desc) \