Problem: json_test fails without the eval feature.
Solution: Add #ifdef.
/* This file has to be included because the tested functions are static */
#include "json.c"
+#if defined(FEAT_EVAL)
/*
* Test json_find_end() with imcomplete items.
*/
reader.js_cookie = " \"foobar\" ";
assert(json_decode_string(&reader, NULL) == OK);
}
+#endif
int
main(void)
{
+#if defined(FEAT_EVAL)
test_decode_find_end();
test_fill_called_on_find_end();
test_fill_called_on_string();
+#endif
return 0;
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1242,
/**/
1241,
/**/