diff options
author | xi <xi@18f92427-320e-0410-9341-c67f048884a3> | 2007-01-08 16:13:59 +0000 |
---|---|---|
committer | xi <xi@18f92427-320e-0410-9341-c67f048884a3> | 2007-01-08 16:13:59 +0000 |
commit | 183993927f9c928b5b60f8c9b8f9f199951a9b6b (patch) | |
tree | 9e85eb101c2113475447b18675ce0dca27603837 /tests/run-dumper.c | |
parent | 6e8d8c99d2953d928666dba43441454ebc0a0d00 (diff) | |
download | libyaml-183993927f9c928b5b60f8c9b8f9f199951a9b6b.tar.gz |
Undefine the NDEBUG directive for the test programs.
git-svn-id: http://svn.pyyaml.org/libyaml/trunk@242 18f92427-320e-0410-9341-c67f048884a3
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; } |