diff options
author | Petri Lehtinen <petri@digip.org> | 2009-10-10 22:54:05 +0300 |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2009-10-10 22:55:15 +0300 |
commit | 40bb7bf4378e09570f3921cd76cdce6acc873259 (patch) | |
tree | d6d005fdcd68dee6cf58572ea277362a1f563259 | |
parent | 9d648a87cb13df0308723c3000acc4fe0e955406 (diff) | |
download | jansson-40bb7bf4378e09570f3921cd76cdce6acc873259.zip jansson-40bb7bf4378e09570f3921cd76cdce6acc873259.tar.gz jansson-40bb7bf4378e09570f3921cd76cdce6acc873259.tar.bz2 |
Fix API tests for object
Because of a typo in test/testprogs/Makefile.am, the tests for object
were never compiled or run.
-rw-r--r-- | test/testprogs/Makefile.am | 2 | ||||
-rw-r--r-- | test/testprogs/test_object.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test/testprogs/Makefile.am b/test/testprogs/Makefile.am index 4360cb8..400a998 100644 --- a/test/testprogs/Makefile.am +++ b/test/testprogs/Makefile.am @@ -3,7 +3,7 @@ check_PROGRAMS = test_array test_simple test_number test_object test_array_SOURCES = test_array.c util.h test_simple_SOURCES = test_simple.c util.h test_number_SOURCES = test_number.c util.h -test_object_SOURCES = test_number.c util.h +test_object_SOURCES = test_object.c util.h AM_CPPFLAGS = -I$(top_srcdir)/src AM_CFLAGS = -Wall -Werror diff --git a/test/testprogs/test_object.c b/test/testprogs/test_object.c index 540109e..1f9f83c 100644 --- a/test/testprogs/test_object.c +++ b/test/testprogs/test_object.c @@ -6,11 +6,13 @@ */ #include <jansson.h> +#include <string.h> #include "util.h" int main() { json_t *object, *string, *other_string, *value; + void *iter; object = json_object(); string = json_string("test"); |