summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2021-12-07 21:39:58 -0800
committerPeter Hutterer <peter.hutterer@who-t.net>2021-12-08 20:59:21 +0000
commitd189102c783653a10931051175de24277a157331 (patch)
tree4105d251061e7894029dac2c37c592f7e4c6f219 /test
parent089e7f98f86836fdd09fd231bff8004c0fc45381 (diff)
downloadxserver-d189102c783653a10931051175de24277a157331.tar.gz
test: #undef NDEBUG so assert is not compiled away
Diffstat (limited to 'test')
-rw-r--r--test/damage/primitives.c3
-rw-r--r--test/fixes.c3
-rw-r--r--test/input.c3
-rw-r--r--test/list.c3
-rw-r--r--test/misc.c3
-rw-r--r--test/signal-logging.c3
-rw-r--r--test/string.c3
-rw-r--r--test/test_xkb.c3
-rw-r--r--test/touch.c3
-rw-r--r--test/xfree86.c3
-rw-r--r--test/xi1/protocol-xchangedevicecontrol.c3
-rw-r--r--test/xi2/protocol-common.c3
-rw-r--r--test/xi2/protocol-eventconvert.c3
-rw-r--r--test/xi2/protocol-xigetclientpointer.c3
-rw-r--r--test/xi2/protocol-xigetselectedevents.c3
-rw-r--r--test/xi2/protocol-xipassivegrabdevice.c3
-rw-r--r--test/xi2/protocol-xiquerydevice.c3
-rw-r--r--test/xi2/protocol-xiquerypointer.c3
-rw-r--r--test/xi2/protocol-xiqueryversion.c3
-rw-r--r--test/xi2/protocol-xiselectevents.c3
-rw-r--r--test/xi2/protocol-xisetclientpointer.c3
-rw-r--r--test/xi2/protocol-xiwarppointer.c3
-rw-r--r--test/xi2/xi2.c3
-rw-r--r--test/xtest.c3
24 files changed, 72 insertions, 0 deletions
diff --git a/test/damage/primitives.c b/test/damage/primitives.c
index ac851c581..d60da8d04 100644
--- a/test/damage/primitives.c
+++ b/test/damage/primitives.c
@@ -31,6 +31,9 @@
* them.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
diff --git a/test/fixes.c b/test/fixes.c
index 573d948dc..ba7323495 100644
--- a/test/fixes.c
+++ b/test/fixes.c
@@ -21,6 +21,9 @@
* DEALINGS IN THE SOFTWARE.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
diff --git a/test/input.c b/test/input.c
index f092bb46d..e27374db3 100644
--- a/test/input.c
+++ b/test/input.c
@@ -21,6 +21,9 @@
* DEALINGS IN THE SOFTWARE.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
diff --git a/test/list.c b/test/list.c
index d710f4693..d51817c21 100644
--- a/test/list.c
+++ b/test/list.c
@@ -21,6 +21,9 @@
* DEALINGS IN THE SOFTWARE.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
diff --git a/test/misc.c b/test/misc.c
index a1d9365c3..19ff13275 100644
--- a/test/misc.c
+++ b/test/misc.c
@@ -21,6 +21,9 @@
* DEALINGS IN THE SOFTWARE.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
diff --git a/test/signal-logging.c b/test/signal-logging.c
index afbdeb241..4ba8485fc 100644
--- a/test/signal-logging.c
+++ b/test/signal-logging.c
@@ -21,6 +21,9 @@
* DEALINGS IN THE SOFTWARE.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
diff --git a/test/string.c b/test/string.c
index 406b7bf8a..3feb88260 100644
--- a/test/string.c
+++ b/test/string.c
@@ -26,6 +26,9 @@
* provided in os/ subdirectory for some platforms.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
diff --git a/test/test_xkb.c b/test/test_xkb.c
index 23d5b22a6..f81a7ed65 100644
--- a/test/test_xkb.c
+++ b/test/test_xkb.c
@@ -21,6 +21,9 @@
* DEALINGS IN THE SOFTWARE.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
diff --git a/test/touch.c b/test/touch.c
index 16aaf4bbb..7b22ceddb 100644
--- a/test/touch.c
+++ b/test/touch.c
@@ -21,6 +21,9 @@
* DEALINGS IN THE SOFTWARE.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
diff --git a/test/xfree86.c b/test/xfree86.c
index 5ab23857f..59e371633 100644
--- a/test/xfree86.c
+++ b/test/xfree86.c
@@ -21,6 +21,9 @@
* DEALINGS IN THE SOFTWARE.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
diff --git a/test/xi1/protocol-xchangedevicecontrol.c b/test/xi1/protocol-xchangedevicecontrol.c
index 54f1f67cb..e386d0c09 100644
--- a/test/xi1/protocol-xchangedevicecontrol.c
+++ b/test/xi1/protocol-xchangedevicecontrol.c
@@ -21,6 +21,9 @@
* DEALINGS IN THE SOFTWARE.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
diff --git a/test/xi2/protocol-common.c b/test/xi2/protocol-common.c
index 05dd3c4e7..69d7c14cb 100644
--- a/test/xi2/protocol-common.c
+++ b/test/xi2/protocol-common.c
@@ -21,6 +21,9 @@
* DEALINGS IN THE SOFTWARE.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
diff --git a/test/xi2/protocol-eventconvert.c b/test/xi2/protocol-eventconvert.c
index 866da07f5..0e0123708 100644
--- a/test/xi2/protocol-eventconvert.c
+++ b/test/xi2/protocol-eventconvert.c
@@ -20,6 +20,9 @@
* DEALINGS IN THE SOFTWARE.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
diff --git a/test/xi2/protocol-xigetclientpointer.c b/test/xi2/protocol-xigetclientpointer.c
index 244e8438f..40dacfc4d 100644
--- a/test/xi2/protocol-xigetclientpointer.c
+++ b/test/xi2/protocol-xigetclientpointer.c
@@ -21,6 +21,9 @@
* DEALINGS IN THE SOFTWARE.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
diff --git a/test/xi2/protocol-xigetselectedevents.c b/test/xi2/protocol-xigetselectedevents.c
index b14100224..0c7ef1675 100644
--- a/test/xi2/protocol-xigetselectedevents.c
+++ b/test/xi2/protocol-xigetselectedevents.c
@@ -21,6 +21,9 @@
* DEALINGS IN THE SOFTWARE.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
diff --git a/test/xi2/protocol-xipassivegrabdevice.c b/test/xi2/protocol-xipassivegrabdevice.c
index dc4602d5d..56645c63a 100644
--- a/test/xi2/protocol-xipassivegrabdevice.c
+++ b/test/xi2/protocol-xipassivegrabdevice.c
@@ -21,6 +21,9 @@
* DEALINGS IN THE SOFTWARE.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
diff --git a/test/xi2/protocol-xiquerydevice.c b/test/xi2/protocol-xiquerydevice.c
index f16a68f57..821ca4063 100644
--- a/test/xi2/protocol-xiquerydevice.c
+++ b/test/xi2/protocol-xiquerydevice.c
@@ -21,6 +21,9 @@
* DEALINGS IN THE SOFTWARE.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
diff --git a/test/xi2/protocol-xiquerypointer.c b/test/xi2/protocol-xiquerypointer.c
index 0f5a2b57a..e04b0bad8 100644
--- a/test/xi2/protocol-xiquerypointer.c
+++ b/test/xi2/protocol-xiquerypointer.c
@@ -21,6 +21,9 @@
* DEALINGS IN THE SOFTWARE.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
diff --git a/test/xi2/protocol-xiqueryversion.c b/test/xi2/protocol-xiqueryversion.c
index c7ddbfc10..89df18431 100644
--- a/test/xi2/protocol-xiqueryversion.c
+++ b/test/xi2/protocol-xiqueryversion.c
@@ -21,6 +21,9 @@
* DEALINGS IN THE SOFTWARE.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
diff --git a/test/xi2/protocol-xiselectevents.c b/test/xi2/protocol-xiselectevents.c
index 7301c46b9..0a4da5bc4 100644
--- a/test/xi2/protocol-xiselectevents.c
+++ b/test/xi2/protocol-xiselectevents.c
@@ -21,6 +21,9 @@
* DEALINGS IN THE SOFTWARE.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
diff --git a/test/xi2/protocol-xisetclientpointer.c b/test/xi2/protocol-xisetclientpointer.c
index ddc9f0000..0e94a91e2 100644
--- a/test/xi2/protocol-xisetclientpointer.c
+++ b/test/xi2/protocol-xisetclientpointer.c
@@ -21,6 +21,9 @@
* DEALINGS IN THE SOFTWARE.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
diff --git a/test/xi2/protocol-xiwarppointer.c b/test/xi2/protocol-xiwarppointer.c
index e5c2f31ea..1b6a2fca6 100644
--- a/test/xi2/protocol-xiwarppointer.c
+++ b/test/xi2/protocol-xiwarppointer.c
@@ -21,6 +21,9 @@
* DEALINGS IN THE SOFTWARE.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
diff --git a/test/xi2/xi2.c b/test/xi2/xi2.c
index 6ed4c7f4f..153cd759b 100644
--- a/test/xi2/xi2.c
+++ b/test/xi2/xi2.c
@@ -21,6 +21,9 @@
* DEALINGS IN THE SOFTWARE.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
diff --git a/test/xtest.c b/test/xtest.c
index d7e6620e6..12433afc4 100644
--- a/test/xtest.c
+++ b/test/xtest.c
@@ -21,6 +21,9 @@
* DEALINGS IN THE SOFTWARE.
*/
+/* Test relies on assert() */
+#undef NDEBUG
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif