From 6d2bc0b88c6f0060bce5c79ee5879cf4ce77a35f Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 18 Nov 2011 10:51:15 -0800 Subject: Added a JSON parsing test case. This flushed out a bug which crashed the garbage collector (uninitialized fields in function objects). * Makefile: Defined TXR_ARGS and TXR_OPTS for new test case. * hash.c (hash_begin): Construction of cobj modified to obey the correct procedure described in HACKING. * lib.c (func_n3, func_n4): These functions neglected to initialize the env member of the function structure. * tests/009/json.expected: New file. * tests/009/json.txr: New file. * tests/009/webapp.json: New file. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7d091c3f..c0fe27ee 100644 --- a/Makefile +++ b/Makefile @@ -89,6 +89,8 @@ tests/006/%: TXR_ARGS := $(top_srcdir)/tests/006/data tests/008/tokenize.ok: TXR_ARGS := $(top_srcdir)/tests/008/data tests/008/configfile.ok: TXR_ARGS := $(top_srcdir)/tests/008/configfile tests/008/students.ok: TXR_ARGS := $(top_srcdir)/tests/008/students.xml +tests/009/json.ok: TXR_ARGS := $(top_srcdir)/tests/009/webapp.json +tests/009/json.ok: TXR_OPTS := -l tests/002/%: TXR_SCRIPT_ON_CMDLINE := y -- cgit v1.2.3