diff options
author | hobbs <hobbs> | 2002-11-23 01:22:50 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2002-11-23 01:22:50 (GMT) |
commit | b56bfc9dd2b0556ccc280a089ad5f815b86cae2d (patch) | |
tree | 6c4800d302936f5d02e10350f1807f6e9db635da /tests/interp.test | |
parent | ada87b51edc6c26dcb7261164f7092a397ba120c (diff) | |
download | tcl-b56bfc9dd2b0556ccc280a089ad5f815b86cae2d.zip tcl-b56bfc9dd2b0556ccc280a089ad5f815b86cae2d.tar.gz tcl-b56bfc9dd2b0556ccc280a089ad5f815b86cae2d.tar.bz2 |
* tests/interp.test: interp-14.4
* generic/tclInterp.c (TclPreventAliasLoop): prevent seg fault
when creating an alias command over the interp name. [Bug #641195]
Diffstat (limited to 'tests/interp.test')
-rw-r--r-- | tests/interp.test | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/interp.test b/tests/interp.test index b05454f..5824639 100644 --- a/tests/interp.test +++ b/tests/interp.test @@ -10,7 +10,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: interp.test,v 1.17 2002/07/29 15:56:54 msofer Exp $ +# RCS: @(#) $Id: interp.test,v 1.18 2002/11/23 01:22:51 hobbs Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -497,6 +497,12 @@ test interp-14.3 {testing interp aliases} { interp alias {a x3} froboz "" puts interp aliases {a x3} } froboz +test interp-14.4 {testing interp alias - alias over master} { + # SF Bug 641195 + catch {interp delete a} + interp create a + list [catch {interp alias "" a a eval} msg] $msg [info commands a] +} {1 {cannot define or rename alias "a": interpreter deleted} {}} # part 15: testing file sharing test interp-15.1 {testing file sharing} { |