Kirill Simonov avatar Kirill Simonov committed 21c76a9

Undefine the NDEBUG directive for the test programs.

Comments (0)

Files changed (7)

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;
 }

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

tests/run-loader.c

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

tests/run-parser.c

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

tests/run-scanner.c

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

tests/test-reader.c

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

tests/test-version.c

 
 #include <stdlib.h>
 #include <stdio.h>
+
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
 #include <assert.h>
 
 int
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.