diff options
author | Marek Olšák <marek.olsak@amd.com> | 2017-03-28 15:55:42 +0200 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2017-04-15 21:28:27 +0200 |
commit | 8bc3d21e643d860539ca9c57b0f585f59a9f53f8 (patch) | |
tree | 0013bd86df32a8e48ecca638244977cda918650f /tests/egl/spec | |
parent | 43aec6de03aafab7e5b827bee89a206f9466e910 (diff) |
tests/egl: report 'skip' instead of 'fail' if not running under X
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Diffstat (limited to 'tests/egl/spec')
-rw-r--r-- | tests/egl/spec/egl_ext_client_extensions/egl_ext_client_extensions.c | 2 | ||||
-rw-r--r-- | tests/egl/spec/egl_khr_create_context/common.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/egl/spec/egl_ext_client_extensions/egl_ext_client_extensions.c b/tests/egl/spec/egl_ext_client_extensions/egl_ext_client_extensions.c index abfe1a3e0..4ed9b439d 100644 --- a/tests/egl/spec/egl_ext_client_extensions/egl_ext_client_extensions.c +++ b/tests/egl/spec/egl_ext_client_extensions/egl_ext_client_extensions.c @@ -152,7 +152,7 @@ test_3(void) } if (!eglInitialize(dpy, &major_version, &minor_version)) { printf("Failed to initialize default display\n"); - piglit_report_result(PIGLIT_FAIL); + piglit_report_result(PIGLIT_SKIP); } display_ext_string = eglQueryString(dpy, EGL_EXTENSIONS); diff --git a/tests/egl/spec/egl_khr_create_context/common.c b/tests/egl/spec/egl_khr_create_context/common.c index bd02dc127..a443ced97 100644 --- a/tests/egl/spec/egl_khr_create_context/common.c +++ b/tests/egl/spec/egl_khr_create_context/common.c @@ -92,7 +92,7 @@ EGL_KHR_create_context_setup(EGLint renderable_type_mask) dpy = XOpenDisplay(NULL); if (dpy == NULL) { fprintf(stderr, "couldn't open display\n"); - piglit_report_result(PIGLIT_FAIL); + piglit_report_result(PIGLIT_SKIP); } egl_dpy = eglGetDisplay(dpy); |