summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorandreas_kupries <akupries@shaw.ca>2008-04-17 19:14:17 (GMT)
committerandreas_kupries <akupries@shaw.ca>2008-04-17 19:14:17 (GMT)
commit09608e5bce1452abb2255e1f859f076afea463b9 (patch)
treea12e5be99c025aa9ba9b569eac8b524673bf46e5 /tests
parent29538c18237e7c58eb01d59da1c2d884ce682324 (diff)
downloadtcl-09608e5bce1452abb2255e1f859f076afea463b9.zip
tcl-09608e5bce1452abb2255e1f859f076afea463b9.tar.gz
tcl-09608e5bce1452abb2255e1f859f076afea463b9.tar.bz2
* generic/tclCompExpr.c (CompileMathFuncCall): Added
* tests/compile.test (compile-16.0): Tcl_ResetResult before appending error message, to clear out possible sharing. Added test case demonstrating the crash (abort on shared object) without the fix.
Diffstat (limited to 'tests')
-rw-r--r--tests/compile.test8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/compile.test b/tests/compile.test
index 69d3d77..f31e2b9 100644
--- a/tests/compile.test
+++ b/tests/compile.test
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: compile.test,v 1.24.2.3 2004/10/26 20:14:36 dgp Exp $
+# RCS: @(#) $Id: compile.test,v 1.24.2.4 2008/04/17 19:14:20 andreas_kupries Exp $
package require tcltest 2
namespace import -force ::tcltest::*
@@ -432,6 +432,12 @@ test compile-15.5 {proper TCL_RETURN code from [return]} {
set result
} ""
+test compile-16.0 {error return from unbraced math func call of unknown function} {
+ set l {3 4 5}
+ catch { expr bogus([join $l ,]) } msg
+ set msg
+} {unknown math function "bogus"}
+
# cleanup
catch {rename p ""}