From 40bb7bf4378e09570f3921cd76cdce6acc873259 Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Sat, 10 Oct 2009 22:54:05 +0300 Subject: [PATCH] Fix API tests for object Because of a typo in test/testprogs/Makefile.am, the tests for object were never compiled or run. --- test/testprogs/Makefile.am | 2 +- test/testprogs/test_object.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 +#include #include "util.h" int main() { json_t *object, *string, *other_string, *value; + void *iter; object = json_object(); string = json_string("test"); -- 2.1.4