diff options
author | Chris Forbes <chrisf@ijw.co.nz> | 2012-09-07 14:20:52 +1200 |
---|---|---|
committer | Chris Forbes <chrisf@ijw.co.nz> | 2012-09-10 20:10:29 +1200 |
commit | 2b53dc1945dbe58b352d30aa2a6c5ccc53babd7e (patch) | |
tree | 3563768333d5f3879f379fd55abdc29e8c2cb6e0 /tests/spec/arb_robustness | |
parent | 193993238bfb44740618afd7deb9865f361ce992 (diff) |
Convert simple if(piglit_get_gl_version() < N) { SKIP } to require
Generated from the following semantic patch:
@@
expression VER;
expression MSG;
@@
- if (piglit_get_gl_version() < VER) {
- printf(MSG);
- piglit_report_result(PIGLIT_SKIP);
(
- exit(1);
|
)
- }
+ piglit_require_gl_version(VER);
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Diffstat (limited to 'tests/spec/arb_robustness')
-rw-r--r-- | tests/spec/arb_robustness/draw-vbo-bounds.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/spec/arb_robustness/draw-vbo-bounds.c b/tests/spec/arb_robustness/draw-vbo-bounds.c index 8256f4e41..cd5e22f17 100644 --- a/tests/spec/arb_robustness/draw-vbo-bounds.c +++ b/tests/spec/arb_robustness/draw-vbo-bounds.c @@ -56,10 +56,7 @@ void piglit_init(int argc, char **argv) { piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE); - if (piglit_get_gl_version() < 15) { - printf("Requires OpenGL 1.5\n"); - piglit_report_result(PIGLIT_SKIP); - } + piglit_require_gl_version(15); glShadeModel(GL_FLAT); glClearColor(0.2, 0.2, 0.2, 1.0); |