apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1523479 - in /apr/apr/trunk/test: testmutexscope.c testpass.c teststr.c
Date Sun, 15 Sep 2013 19:05:10 GMT
Author: trawick
Date: Sun Sep 15 19:05:10 2013
New Revision: 1523479

URL: http://svn.apache.org/r1523479
Log:
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>.

Modified:
    apr/apr/trunk/test/testmutexscope.c
    apr/apr/trunk/test/testpass.c
    apr/apr/trunk/test/teststr.c

Modified: apr/apr/trunk/test/testmutexscope.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testmutexscope.c?rev=1523479&r1=1523478&r2=1523479&view=diff
==============================================================================
--- apr/apr/trunk/test/testmutexscope.c (original)
+++ apr/apr/trunk/test/testmutexscope.c Sun Sep 15 19:05:10 2013
@@ -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>

Modified: apr/apr/trunk/test/testpass.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testpass.c?rev=1523479&r1=1523478&r2=1523479&view=diff
==============================================================================
--- apr/apr/trunk/test/testpass.c (original)
+++ apr/apr/trunk/test/testpass.c Sun Sep 15 19:05:10 2013
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-#include <assert.h>
 #include <stdio.h>
 #include <stdlib.h>
 

Modified: apr/apr/trunk/test/teststr.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/teststr.c?rev=1523479&r1=1523478&r2=1523479&view=diff
==============================================================================
--- apr/apr/trunk/test/teststr.c (original)
+++ apr/apr/trunk/test/teststr.c Sun Sep 15 19:05:10 2013
@@ -16,7 +16,6 @@
 
 #include "testutil.h"
 
-#include <assert.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>



Mime
View raw message