summaryrefslogtreecommitdiffstats
path: root/tests/main.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-04-28 05:31:53 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-04-28 05:31:53 (GMT)
commit92091ec07127569dc66df5e7e9f41d6994e08ab8 (patch)
treebf229a4b6cbba8307fecb0cabe2e62f010386100 /tests/main.test
parent7842c9275791d34656b40014d43e8177a94010ad (diff)
downloadtcl-92091ec07127569dc66df5e7e9f41d6994e08ab8.zip
tcl-92091ec07127569dc66df5e7e9f41d6994e08ab8.tar.gz
tcl-92091ec07127569dc66df5e7e9f41d6994e08ab8.tar.bz2
* library/init.tcl: Corrected flaw in interactive command
* tests/main.test: auto-completion. [Bug 1191409].
Diffstat (limited to 'tests/main.test')
-rw-r--r--tests/main.test18
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/main.test b/tests/main.test
index 30de5ed..0500377 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.15 2003/10/07 21:45:39 dgp Exp $
+# RCS: @(#) $Id: main.test,v 1.16 2005/04/28 05:32:02 dgp Exp $
if {[catch {package require tcltest 2.0.2}]} {
puts stderr "Skipping tests in [info script]. tcltest 2.0.2 required."
@@ -906,6 +906,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 {