xvmc: force assertion in XvMC tests
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 29 Nov 2015 17:19:35 +0000 (18:19 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 4 Dec 2015 14:06:41 +0000 (14:06 +0000)
This follows the src/util/u_atomic_test.c model of undefining NDEBUG
unconditionally throughouth the XvMC tests, to force asserts regardless
of debug mode.

The comment on u_atomic_test.c is also fixed (read 'debug' where it
should have been 'release').

v2: s/debug/release/ in relevant comments

Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
[Emil Velikov: keep the src/util/ hunk as separate patch]
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/state_trackers/xvmc/tests/test_blocks.c
src/gallium/state_trackers/xvmc/tests/test_context.c
src/gallium/state_trackers/xvmc/tests/test_rendering.c
src/gallium/state_trackers/xvmc/tests/test_subpicture.c
src/gallium/state_trackers/xvmc/tests/test_surface.c

index a35838f3309fef6961f5a63dfce2fae184e244ad..53c29bc5ae1be00351aed4275e205198b9f15a4e 100644 (file)
@@ -25,6 +25,8 @@
  *
  **************************************************************************/
 
+/* Force assertions, even on release builds. */
+#undef NDEBUG
 #include <assert.h>
 #include <stdio.h>
 #include <stdlib.h>
index 344ac76decc45310f8bd25fb768781c86082ae20..81d26fcffd5718fdc131ddc92af5878a3720a7f8 100644 (file)
@@ -25,6 +25,8 @@
  *
  **************************************************************************/
 
+/* Force assertions, even on release builds. */
+#undef NDEBUG
 #include <assert.h>
 #include <stdio.h>
 #include <stdlib.h>
index b3b3794810d895691b57e99b5713cb915aee854a..c5494ecc8c2fd94e40299f86b80b13ea8384156a 100644 (file)
@@ -25,6 +25,8 @@
  *
  **************************************************************************/
 
+/* Force assertions, even on release builds. */
+#undef NDEBUG
 #include <assert.h>
 #include <stdio.h>
 #include <string.h>
index 57ba1c751385e8de06caa5f1fbe3f258938a0c49..006972fa8ee7b2e778ae47c0e7162c80d9896ce2 100644 (file)
@@ -25,6 +25,8 @@
  *
  **************************************************************************/
 
+/* Force assertions, even on release builds. */
+#undef NDEBUG
 #include <assert.h>
 #include <stdio.h>
 #include <stdlib.h>
index 964ca82c506230117b39978b926319e200561bc3..d5a121d5ab0dfde02adf2b2894efb1e9b4a28336 100644 (file)
@@ -25,6 +25,8 @@
  *
  **************************************************************************/
 
+/* Force assertions, even on release builds. */
+#undef NDEBUG
 #include <assert.h>
 #include <stdio.h>
 #include <stdlib.h>