[Piglit] [PATCH 2/9] glx-swap-event: remove '#if defined(GLX_EXTENSION)' guards
Emil Velikov
emil.l.velikov at gmail.com
Mon Jun 27 16:52:41 UTC 2016
From: Emil Velikov <emil.velikov at collabora.com>
We want the test to be complete/consistent regardless if the headers
we're building against are new or old. In case of the the latter we
could add the definitions locally, if needed.
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
tests/glx/glx-swap-event.c | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/tests/glx/glx-swap-event.c b/tests/glx/glx-swap-event.c
index a9f4136..25c3c4a 100644
--- a/tests/glx/glx-swap-event.c
+++ b/tests/glx/glx-swap-event.c
@@ -34,9 +34,6 @@
#include <sys/time.h>
-#if defined(GLX_MESA_swap_control) && defined(GLX_INTEL_swap_event)
-
-
/* return current time (in seconds) */
static double
current_time(void)
@@ -539,14 +536,3 @@ main(int argc, char *argv[])
return 0;
}
-
-#else
-
-int
-main(int argc, char *argv[])
-{
- piglit_report_result(PIGLIT_SKIP);
- return 0;
-}
-
-#endif /* GLX_MESA_swap_control && GLX_INTEL_swap_event */
--
2.8.2
More information about the Piglit
mailing list