Commits

Kirill Simonov  committed 21c76a9

Undefine the NDEBUG directive for the test programs.

  • Participants
  • Parent commits 525f9f6

Comments (0)

Files changed (7)

File tests/run-dumper.c

 
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
+
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
 #include <assert.h>
-#include <string.h>
 
 #define BUFFER_SIZE 65536
 #define MAX_DOCUMENTS  16
                             document2, node2->data.mapping.pairs.start[k].value)) return 0;
             }
             break;
-
+        default:
+            assert(0);
+            break;
     }
     return 1;
 }

File tests/run-emitter.c

 
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
+
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
 #include <assert.h>
-#include <string.h>
 
 #define BUFFER_SIZE 65536
 #define MAX_EVENTS  1024

File tests/run-loader.c

 
 #include <stdlib.h>
 #include <stdio.h>
+
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
 #include <assert.h>
 
 int

File tests/run-parser.c

 
 #include <stdlib.h>
 #include <stdio.h>
+
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
 #include <assert.h>
 
 int

File tests/run-scanner.c

 
 #include <stdlib.h>
 #include <stdio.h>
+
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
 #include <assert.h>
 
 int

File tests/test-reader.c

 
 #include <stdlib.h>
 #include <stdio.h>
+
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
 #include <assert.h>
 
 /*

File tests/test-version.c

 
 #include <stdlib.h>
 #include <stdio.h>
+
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
 #include <assert.h>
 
 int