diff src/json_test.c @ 7891:d14cf20b44dc v7.4.1242

commit https://github.com/vim/vim/commit/8d8c509ac8dea59ad07712971d74afae08521f79 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 2 19:15:38 2016 +0100 patch 7.4.1242 Problem: json_test fails without the eval feature. Solution: Add #ifdef.
author Christian Brabandt <cb@256bit.org>
date Tue, 02 Feb 2016 19:30:09 +0100
parents 98a96e0ca73b
children 45ea5ebf3a98
line wrap: on
line diff
--- a/src/json_test.c
+++ b/src/json_test.c
@@ -21,6 +21,7 @@
 /* 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.
  */
@@ -182,12 +183,15 @@ test_fill_called_on_string(void)
     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;
 }