From fb3d08fe26e26e638a3d30a45ee865ae0628a861 Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Fri, 14 Mar 2014 11:46:22 +1000 Subject: jim.c: check for missing quotes, etc. in eval, expr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Throw an error if a script or expression is missing a trailing bracket, brace or quote rather than simply ignoring the error. Reported-by: Florian Schäfer Signed-off-by: Steve Bennett --- tests/parse.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/parse.test b/tests/parse.test index 982c4a4..8b03192 100644 --- a/tests/parse.test +++ b/tests/parse.test @@ -153,9 +153,9 @@ test parse-1.28 "nested dict sugar" { set dq {"} set script "set x ${dq}hello" -test parse-1.29 "missing quote" jim { +test parse-1.29 "missing quote" -constraints jim -body { eval $script -} hello +} -returnCodes error -match glob -result {missing quote} test parse-1.30 "missing quote" { info complete $script -- cgit v1.1