|
@@ -6,6 +6,8 @@
|
|
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
|
|
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
+#undef NDEBUG
|
|
|
|
+
|
|
#include <stdio.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <stdlib.h>
|
|
#include <assert.h>
|
|
#include <assert.h>
|
|
@@ -14,7 +16,7 @@
|
|
|
|
|
|
int got_abort;
|
|
int got_abort;
|
|
|
|
|
|
-void aborthandler(int junk)
|
|
+static void aborthandler(int junk)
|
|
{
|
|
{
|
|
got_abort = 1;
|
|
got_abort = 1;
|
|
}
|
|
}
|
|
@@ -29,9 +31,7 @@ int main(int argc, char *argv[])
|
|
assert(0 == 0);
|
|
assert(0 == 0);
|
|
TEST_NUMERIC(got_abort, 0);
|
|
TEST_NUMERIC(got_abort, 0);
|
|
|
|
|
|
-#ifndef NDEBUG
|
|
+#define NDEBUG
|
|
-# define NDEBUG
|
|
|
|
-#endif
|
|
|
|
got_abort = 0;
|
|
got_abort = 0;
|
|
printf("Don't worry -- This next test is supposed to print an assert message:\n");
|
|
printf("Don't worry -- This next test is supposed to print an assert message:\n");
|
|
fprintf(stderr, "\t");
|
|
fprintf(stderr, "\t");
|