summaryrefslogtreecommitdiff
path: root/test/testmutexscope.c
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2013-09-15 19:05:10 +0000
committerJeff Trawick <trawick@apache.org>2013-09-15 19:05:10 +0000
commitbf3ae37d6a698eb6dd26b265c0bc4f9321b983bd (patch)
treed1e6aeb89eafa6668535e616864b4a2971a291d5 /test/testmutexscope.c
parentdcd48258f51db2e17d6dd8e57c620317cb9ec424 (diff)
downloadapr-bf3ae37d6a698eb6dd26b265c0bc4f9321b983bd.tar.gz
assert() games:
testmutexscope relies on assert() to check as well as to run at all, so make sure NDEBUG isn't defined. testpass and teststr don't use assert(), so don't include <assert.h>. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1523479 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testmutexscope.c')
-rw-r--r--test/testmutexscope.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/testmutexscope.c b/test/testmutexscope.c
index 5318a27c3..57fcaf5aa 100644
--- a/test/testmutexscope.c
+++ b/test/testmutexscope.c
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+/* This program won't run or check correctly if assert() is disabled. */
+#undef NDEBUG
#include <assert.h>
#include <errno.h>
#include <stdio.h>