[Mesa-dev] [PATCH 3/3] xvmc: force assertion in XvMC tests
Giuseppe Bilotta
giuseppe.bilotta at gmail.com
Sat Nov 28 07:43:57 PST 2015
This follows the src/util/u_atomic_test model of undefining NDEBUG
unconditionally throughouth the XvMC tests, to force asserts regardless
of debug mode.
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
---
src/gallium/state_trackers/xvmc/tests/test_blocks.c | 2 ++
src/gallium/state_trackers/xvmc/tests/test_context.c | 2 ++
src/gallium/state_trackers/xvmc/tests/test_rendering.c | 2 ++
src/gallium/state_trackers/xvmc/tests/test_subpicture.c | 2 ++
src/gallium/state_trackers/xvmc/tests/test_surface.c | 2 ++
5 files changed, 10 insertions(+)
diff --git a/src/gallium/state_trackers/xvmc/tests/test_blocks.c b/src/gallium/state_trackers/xvmc/tests/test_blocks.c
index a35838f..4c89951 100644
--- a/src/gallium/state_trackers/xvmc/tests/test_blocks.c
+++ b/src/gallium/state_trackers/xvmc/tests/test_blocks.c
@@ -25,6 +25,8 @@
*
**************************************************************************/
+/* Force assertions, even on debug builds. */
+#undef NDEBUG
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/src/gallium/state_trackers/xvmc/tests/test_context.c b/src/gallium/state_trackers/xvmc/tests/test_context.c
index 344ac76..aa7c2c7 100644
--- a/src/gallium/state_trackers/xvmc/tests/test_context.c
+++ b/src/gallium/state_trackers/xvmc/tests/test_context.c
@@ -25,6 +25,8 @@
*
**************************************************************************/
+/* Force assertions, even on debug builds. */
+#undef NDEBUG
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/src/gallium/state_trackers/xvmc/tests/test_rendering.c b/src/gallium/state_trackers/xvmc/tests/test_rendering.c
index b3b3794..8b61c65 100644
--- a/src/gallium/state_trackers/xvmc/tests/test_rendering.c
+++ b/src/gallium/state_trackers/xvmc/tests/test_rendering.c
@@ -25,6 +25,8 @@
*
**************************************************************************/
+/* Force assertions, even on debug builds. */
+#undef NDEBUG
#include <assert.h>
#include <stdio.h>
#include <string.h>
diff --git a/src/gallium/state_trackers/xvmc/tests/test_subpicture.c b/src/gallium/state_trackers/xvmc/tests/test_subpicture.c
index 57ba1c7..564c561 100644
--- a/src/gallium/state_trackers/xvmc/tests/test_subpicture.c
+++ b/src/gallium/state_trackers/xvmc/tests/test_subpicture.c
@@ -25,6 +25,8 @@
*
**************************************************************************/
+/* Force assertions, even on debug builds. */
+#undef NDEBUG
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/src/gallium/state_trackers/xvmc/tests/test_surface.c b/src/gallium/state_trackers/xvmc/tests/test_surface.c
index 964ca82..9ee8d3c 100644
--- a/src/gallium/state_trackers/xvmc/tests/test_surface.c
+++ b/src/gallium/state_trackers/xvmc/tests/test_surface.c
@@ -25,6 +25,8 @@
*
**************************************************************************/
+/* Force assertions, even on debug builds. */
+#undef NDEBUG
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
--
2.6.0.rc2.233.g6dd8a9a.dirty
More information about the mesa-dev
mailing list