diff options
Diffstat (limited to 'tests/run-dumper.c')
-rw-r--r-- | tests/run-dumper.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/run-dumper.c b/tests/run-dumper.c index 149dde0..41bead4 100644 --- a/tests/run-dumper.c +++ b/tests/run-dumper.c @@ -2,9 +2,13 @@ #include <stdlib.h> #include <stdio.h> -#include <assert.h> #include <string.h> +#ifdef NDEBUG +#undef NDEBUG +#endif +#include <assert.h> + #define BUFFER_SIZE 65536 #define MAX_DOCUMENTS 16 @@ -114,7 +118,9 @@ int compare_nodes(yaml_document_t *document1, int index1, document2, node2->data.mapping.pairs.start[k].value)) return 0; } break; - + default: + assert(0); + break; } return 1; } |