On 02/05/2014 10:30 PM, Daniel Kurtz wrote:
> The glx_oml_sync_control does not parse parameters.  In particular, it
> does not parse the "-auto" flag to set piglit_automatic.
> 
> So, when we return FAIL from draw(), it returns to the
> piglit_glx_event_loop, which just continues to spin waiting for events.
> Instead, just report the FAIL result, which quits the program.
> 
> Signed-off-by: Daniel Kurtz <[email protected]>

Oops.

Reviewed-by: Ian Romanick <[email protected]>

Also, if only one person has ever edited (or mostly edited) a file, you
should CC that person on the patch.  That way they're more likely to
notice and send a R-b. :)

> ---
>  tests/spec/glx_oml_sync_control/getmscrate.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/spec/glx_oml_sync_control/getmscrate.c 
> b/tests/spec/glx_oml_sync_control/getmscrate.c
> index 9f0a43b..c18ea49 100644
> --- a/tests/spec/glx_oml_sync_control/getmscrate.c
> +++ b/tests/spec/glx_oml_sync_control/getmscrate.c
> @@ -41,7 +41,7 @@ draw(Display *dpy)
>  
>       if (!glXGetMscRateOML(dpy, win, &numerator, &denominator)) {
>               printf("glXGetMscRateOML returned failure.\n");
> -             return PIGLIT_FAIL;
> +             piglit_report_result(PIGLIT_FAIL);
>       }
>  
>       if (numerator == 0xDEADBEEF) {
> 

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to