diff options
author | Jeff Trawick <trawick@apache.org> | 2013-09-15 19:05:10 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2013-09-15 19:05:10 +0000 |
commit | bf3ae37d6a698eb6dd26b265c0bc4f9321b983bd (patch) | |
tree | d1e6aeb89eafa6668535e616864b4a2971a291d5 /test/testmutexscope.c | |
parent | dcd48258f51db2e17d6dd8e57c620317cb9ec424 (diff) | |
download | apr-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.c | 2 |
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> |