From 4df677696bd749dc13a4bed59ec441324a10eeb7 Mon Sep 17 00:00:00 2001 From: "Mike C. Fletcher" Date: Mon, 1 Jul 2024 11:36:19 -0400 Subject: [PATCH] TESTCASE Don't bomb out during egl test when there's no egl devices --- tests/check_egl_device_enumeration.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/check_egl_device_enumeration.py b/tests/check_egl_device_enumeration.py index a60b46c1..096707f3 100644 --- a/tests/check_egl_device_enumeration.py +++ b/tests/check_egl_device_enumeration.py @@ -12,6 +12,8 @@ def main(): devices = (EGLDeviceEXT * 10)() count = EGLint() major, minor = EGLint(), EGLint() + if not eglQueryDevicesEXT: + raise RuntimeError("No egl query devices extension available") if eglQueryDevicesEXT(10, devices, count): log.info("%s devices enumerated", count) for i, device in enumerate(devices[: count.value]):