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]> --- 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) { -- 1.8.5.3 _______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
