From: Kirill Simonov Date: Mon, 8 Jan 2007 16:13:59 +0000 (+0000) Subject: Undefine the NDEBUG directive for the test programs. X-Git-Tag: upstream/0.1.1~7 X-Git-Url: http://andersk.mit.edu/gitweb/libyaml.git/commitdiff_plain/01224901943b05fd939158398d1940ac86ce16b8 Undefine the NDEBUG directive for the test programs. --- 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 #include -#include #include +#ifdef NDEBUG +#undef NDEBUG +#endif +#include + #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; } diff --git a/tests/run-emitter.c b/tests/run-emitter.c index 0787895..6b246fa 100644 --- a/tests/run-emitter.c +++ b/tests/run-emitter.c @@ -2,9 +2,13 @@ #include #include -#include #include +#ifdef NDEBUG +#undef NDEBUG +#endif +#include + #define BUFFER_SIZE 65536 #define MAX_EVENTS 1024 diff --git a/tests/run-loader.c b/tests/run-loader.c index a34ad07..8c36b66 100644 --- a/tests/run-loader.c +++ b/tests/run-loader.c @@ -2,6 +2,10 @@ #include #include + +#ifdef NDEBUG +#undef NDEBUG +#endif #include int diff --git a/tests/run-parser.c b/tests/run-parser.c index 8c1a5db..1303112 100644 --- a/tests/run-parser.c +++ b/tests/run-parser.c @@ -2,6 +2,10 @@ #include #include + +#ifdef NDEBUG +#undef NDEBUG +#endif #include int diff --git a/tests/run-scanner.c b/tests/run-scanner.c index 2c8d33e..2c79e7c 100644 --- a/tests/run-scanner.c +++ b/tests/run-scanner.c @@ -2,6 +2,10 @@ #include #include + +#ifdef NDEBUG +#undef NDEBUG +#endif #include int diff --git a/tests/test-reader.c b/tests/test-reader.c index 49dc874..c6f84cd 100644 --- a/tests/test-reader.c +++ b/tests/test-reader.c @@ -5,6 +5,10 @@ yaml_parser_update_buffer(yaml_parser_t *parser, size_t length); #include #include + +#ifdef NDEBUG +#undef NDEBUG +#endif #include /* diff --git a/tests/test-version.c b/tests/test-version.c index 5982f7d..e3e4a16 100644 --- a/tests/test-version.c +++ b/tests/test-version.c @@ -2,6 +2,10 @@ #include #include + +#ifdef NDEBUG +#undef NDEBUG +#endif #include int