[Piglit] [PATCH] arb_texture_buffer_object-get: use piglit_get_gl_enum_name() in error msg
Charmaine Lee
charmainel at vmware.com
Wed Jun 25 09:25:43 PDT 2014
Reviewed-by: Charmaine Lee <charmainel at vmware.com>
________________________________________
From: Piglit <piglit-bounces at lists.freedesktop.org> on behalf of Brian Paul <brianp at vmware.com>
Sent: Wednesday, June 25, 2014 8:45 AM
To: piglit at lists.freedesktop.org
Subject: [Piglit] [PATCH] arb_texture_buffer_object-get: use piglit_get_gl_enum_name() in error msg
---
tests/spec/arb_texture_buffer_object/get.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/spec/arb_texture_buffer_object/get.c b/tests/spec/arb_texture_buffer_object/get.c
index 202a909..d96a3c1 100644
--- a/tests/spec/arb_texture_buffer_object/get.c
+++ b/tests/spec/arb_texture_buffer_object/get.c
@@ -53,9 +53,11 @@ _expect(int line, GLenum token, GLint val)
glGetIntegerv(token, &ret);
if (ret != val) {
fprintf(stderr,
- "line %d: %s was %d, expected %d\n",
+ "line %d: %s was %s, expected %s\n",
line,
- piglit_get_gl_enum_name(token), ret, val);
+ piglit_get_gl_enum_name(token),
+ piglit_get_gl_enum_name(ret),
+ piglit_get_gl_enum_name(val));
return false;
}
--
1.7.10.4
_______________________________________________
Piglit mailing list
Piglit at lists.freedesktop.org
https://urldefense.proofpoint.com/v1/url?u=http://lists.freedesktop.org/mailman/listinfo/piglit&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=iVNYIcCaC9TDvyNBQU%2F5q5NVsC01tSgJb3oX27T14ck%3D%0A&m=5FJnHACCkMzFsLt9i%2F39IawY5XgXli0OMmRYVVzrQrM%3D%0A&s=521a7752e009e8f0cacbd799bb448862db4ac0608b8dc67e4b466911b38e93ce
More information about the Piglit
mailing list