Browse Source

add common header for all tests

resolves #406
pull/497/head
andy5995 6 years ago
parent
commit
b76c1e585c
No known key found for this signature in database GPG Key ID: 6BFEC9B82603CAF
3 changed files with 9 additions and 1 deletions
  1. +4
    -0
      json.h
  2. +1
    -1
      tests/Makefile.am
  3. +4
    -0
      tests/test_common.h

+ 4
- 0
json.h View File

@@ -35,4 +35,8 @@ extern "C" {
} }
#endif #endif


#ifdef TEST
#include "test_common.h"
#endif

#endif #endif

+ 1
- 1
tests/Makefile.am View File

@@ -1,5 +1,5 @@


AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/tests
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/tests -DTEST


LDADD= $(LIBJSON_LA) LDADD= $(LIBJSON_LA)




+ 4
- 0
tests/test_common.h View File

@@ -0,0 +1,4 @@

#ifdef NDEBUG
#undef NDEBUG
#endif

Loading…
Cancel
Save