Skip to content

Commit

Permalink
Undefine the NDEBUG directive for the test programs.
Browse files Browse the repository at this point in the history
  • Loading branch information
xitology committed Jan 8, 2007
1 parent 071329a commit 0122490
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 3 deletions.
10 changes: 8 additions & 2 deletions tests/run-dumper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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;
}
Expand Down
6 changes: 5 additions & 1 deletion tests/run-emitter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_EVENTS 1024

Expand Down
4 changes: 4 additions & 0 deletions tests/run-loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

#include <stdlib.h>
#include <stdio.h>

#ifdef NDEBUG
#undef NDEBUG
#endif
#include <assert.h>

int
Expand Down
4 changes: 4 additions & 0 deletions tests/run-parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

#include <stdlib.h>
#include <stdio.h>

#ifdef NDEBUG
#undef NDEBUG
#endif
#include <assert.h>

int
Expand Down
4 changes: 4 additions & 0 deletions tests/run-scanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

#include <stdlib.h>
#include <stdio.h>

#ifdef NDEBUG
#undef NDEBUG
#endif
#include <assert.h>

int
Expand Down
4 changes: 4 additions & 0 deletions tests/test-reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ yaml_parser_update_buffer(yaml_parser_t *parser, size_t length);

#include <stdlib.h>
#include <stdio.h>

#ifdef NDEBUG
#undef NDEBUG
#endif
#include <assert.h>

/*
Expand Down
4 changes: 4 additions & 0 deletions tests/test-version.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

#include <stdlib.h>
#include <stdio.h>

#ifdef NDEBUG
#undef NDEBUG
#endif
#include <assert.h>

int
Expand Down

0 comments on commit 0122490

Please sign in to comment.