Fix API tests for object
authorPetri Lehtinen <petri@digip.org>
Sat, 10 Oct 2009 19:54:05 +0000 (22:54 +0300)
committerPetri Lehtinen <petri@digip.org>
Sat, 10 Oct 2009 19:55:15 +0000 (22:55 +0300)
Because of a typo in test/testprogs/Makefile.am, the tests for object
were never compiled or run.

test/testprogs/Makefile.am
test/testprogs/test_object.c

index 4360cb8..400a998 100644 (file)
@@ -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
index 540109e..1f9f83c 100644 (file)
@@ -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");