From 183993927f9c928b5b60f8c9b8f9f199951a9b6b Mon Sep 17 00:00:00 2001 From: xi Date: Mon, 8 Jan 2007 16:13:59 +0000 Subject: Undefine the NDEBUG directive for the test programs. git-svn-id: http://svn.pyyaml.org/libyaml/trunk@242 18f92427-320e-0410-9341-c67f048884a3 --- tests/run-dumper.c | 10 ++++++++-- tests/run-emitter.c | 6 +++++- tests/run-loader.c | 4 ++++ tests/run-parser.c | 4 ++++ tests/run-scanner.c | 4 ++++ tests/test-reader.c | 4 ++++ tests/test-version.c | 4 ++++ 7 files changed, 33 insertions(+), 3 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 #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 -- cgit v1.2.1