summaryrefslogtreecommitdiff
path: root/tests/run-dumper.c
diff options
context:
space:
mode:
authorKirill Simonov <xi@resolvent.net>2007-01-08 16:13:59 +0000
committerKirill Simonov <xi@resolvent.net>2007-01-08 16:13:59 +0000
commit01224901943b05fd939158398d1940ac86ce16b8 (patch)
tree9e85eb101c2113475447b18675ce0dca27603837 /tests/run-dumper.c
parent071329aef541027cb9a1cadd92387dd577789b4d (diff)
downloadlibyaml-git-01224901943b05fd939158398d1940ac86ce16b8.tar.gz
Undefine the NDEBUG directive for the test programs.
Diffstat (limited to 'tests/run-dumper.c')
-rw-r--r--tests/run-dumper.c10
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;
}