From d189102c783653a10931051175de24277a157331 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 7 Dec 2021 21:39:58 -0800 Subject: [PATCH] test: #undef NDEBUG so assert is not compiled away --- test/damage/primitives.c | 3 +++ test/fixes.c | 3 +++ test/input.c | 3 +++ test/list.c | 3 +++ test/misc.c | 3 +++ test/signal-logging.c | 3 +++ test/string.c | 3 +++ test/test_xkb.c | 3 +++ test/touch.c | 3 +++ test/xfree86.c | 3 +++ test/xi1/protocol-xchangedevicecontrol.c | 3 +++ test/xi2/protocol-common.c | 3 +++ test/xi2/protocol-eventconvert.c | 3 +++ test/xi2/protocol-xigetclientpointer.c | 3 +++ test/xi2/protocol-xigetselectedevents.c | 3 +++ test/xi2/protocol-xipassivegrabdevice.c | 3 +++ test/xi2/protocol-xiquerydevice.c | 3 +++ test/xi2/protocol-xiquerypointer.c | 3 +++ test/xi2/protocol-xiqueryversion.c | 3 +++ test/xi2/protocol-xiselectevents.c | 3 +++ test/xi2/protocol-xisetclientpointer.c | 3 +++ test/xi2/protocol-xiwarppointer.c | 3 +++ test/xi2/xi2.c | 3 +++ test/xtest.c | 3 +++ 24 files changed, 72 insertions(+) diff --git a/test/damage/primitives.c b/test/damage/primitives.c index ac851c5812..d60da8d042 100644 --- a/test/damage/primitives.c +++ b/test/damage/primitives.c @@ -31,6 +31,9 @@ * them. */ +/* Test relies on assert() */ +#undef NDEBUG + #include #include #include diff --git a/test/fixes.c b/test/fixes.c index 573d948dc0..ba7323495c 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 #endif diff --git a/test/input.c b/test/input.c index f092bb46da..e27374db32 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 #endif diff --git a/test/list.c b/test/list.c index d710f46931..d51817c214 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 #endif diff --git a/test/misc.c b/test/misc.c index a1d9365c3d..19ff13275a 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 #endif diff --git a/test/signal-logging.c b/test/signal-logging.c index afbdeb2410..4ba8485fc1 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 #endif diff --git a/test/string.c b/test/string.c index 406b7bf8a8..3feb88260b 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 #endif diff --git a/test/test_xkb.c b/test/test_xkb.c index 23d5b22a64..f81a7ed65e 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 #endif diff --git a/test/touch.c b/test/touch.c index 16aaf4bbb2..7b22ceddb2 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 #endif diff --git a/test/xfree86.c b/test/xfree86.c index 5ab23857f3..59e3716339 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 #endif diff --git a/test/xi1/protocol-xchangedevicecontrol.c b/test/xi1/protocol-xchangedevicecontrol.c index 54f1f67cbf..e386d0c095 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 #endif diff --git a/test/xi2/protocol-common.c b/test/xi2/protocol-common.c index 05dd3c4e7f..69d7c14cbf 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 #endif diff --git a/test/xi2/protocol-eventconvert.c b/test/xi2/protocol-eventconvert.c index 866da07f5b..0e01237082 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 #endif diff --git a/test/xi2/protocol-xigetclientpointer.c b/test/xi2/protocol-xigetclientpointer.c index 244e8438ff..40dacfc4dc 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 #endif diff --git a/test/xi2/protocol-xigetselectedevents.c b/test/xi2/protocol-xigetselectedevents.c index b14100224b..0c7ef1675f 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 #endif diff --git a/test/xi2/protocol-xipassivegrabdevice.c b/test/xi2/protocol-xipassivegrabdevice.c index dc4602d5d3..56645c63ae 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 #endif diff --git a/test/xi2/protocol-xiquerydevice.c b/test/xi2/protocol-xiquerydevice.c index f16a68f579..821ca40637 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 #endif diff --git a/test/xi2/protocol-xiquerypointer.c b/test/xi2/protocol-xiquerypointer.c index 0f5a2b57a1..e04b0bad86 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 #endif diff --git a/test/xi2/protocol-xiqueryversion.c b/test/xi2/protocol-xiqueryversion.c index c7ddbfc102..89df184312 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 #endif diff --git a/test/xi2/protocol-xiselectevents.c b/test/xi2/protocol-xiselectevents.c index 7301c46b96..0a4da5bc4a 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 #endif diff --git a/test/xi2/protocol-xisetclientpointer.c b/test/xi2/protocol-xisetclientpointer.c index ddc9f0000e..0e94a91e2f 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 #endif diff --git a/test/xi2/protocol-xiwarppointer.c b/test/xi2/protocol-xiwarppointer.c index e5c2f31ea0..1b6a2fca69 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 #endif diff --git a/test/xi2/xi2.c b/test/xi2/xi2.c index 6ed4c7f4fb..153cd759b0 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 #endif diff --git a/test/xtest.c b/test/xtest.c index d7e6620e6b..12433afc45 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 #endif