summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) \