summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-04-28 05:34:39 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-04-28 05:34:39 (GMT)
commit33d84ccecf6c5093e2d4119c8e1ff8ece0a24779 (patch)
treefb70f0396a0f5b17ad0eea6f00169be8a5d62111 /tests
parent71261bad8d22f9c224d3b9ca215e952dbdfc204c (diff)
downloadtcl-33d84ccecf6c5093e2d4119c8e1ff8ece0a24779.zip
tcl-33d84ccecf6c5093e2d4119c8e1ff8ece0a24779.tar.gz
tcl-33d84ccecf6c5093e2d4119c8e1ff8ece0a24779.tar.bz2
* library/init.tcl: Corrected flaw in interactive command
* tests/main.test: auto-completion. [Bug 1191409].
Diffstat (limited to 'tests')
-rw-r--r--tests/main.test18
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/main.test b/tests/main.test
index 6778b88..54f012b 100644
--- a/tests/main.test
+++ b/tests/main.test
@@ -1,6 +1,6 @@
# This file contains a collection of tests for generic/tclMain.c.
#
-# RCS: @(#) $Id: main.test,v 1.13 2003/02/16 01:36:32 msofer Exp $
+# RCS: @(#) $Id: main.test,v 1.13.2.1 2005/04/28 05:34:40 dgp Exp $
if {[catch {package require tcltest 2.0.2}]} {
puts stderr "Skipping tests in [info script]. tcltest 2.0.2 required."
@@ -840,6 +840,22 @@ namespace eval ::tcl::test::main {
file delete result
} -result "1\n% "
+ test Tcl_Main-6.7 {
+ [unknown]: interactive auto-completion.
+ } -constraints {
+ exec
+ } -body {
+ exec [interpreter] << {
+ proc foo\{ x {}
+ set tcl_interactive 1
+ foo y} >& result
+ set f [open result]
+ read $f
+ } -cleanup {
+ close $f
+ file delete result
+ } -result "1\n% % "
+
# Tests Tcl_Main-7.*: exiting
test Tcl_Main-7.1 {