[Piglit] [PATCH] Convert simple if(piglit_get_gl_version() < N) { SKIP } to require
Eric Anholt
eric at anholt.net
Fri Sep 7 08:54:07 PDT 2012
Chris Forbes <chrisf at ijw.co.nz> writes:
> 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);
Nice cleanup!
Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20120907/11cdf09c/attachment.pgp>
More information about the Piglit
mailing list