diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/source.test | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/source.test b/tests/source.test index 30b69a5..1718aa6 100644 --- a/tests/source.test +++ b/tests/source.test @@ -6,12 +6,12 @@ # # Copyright (c) 1991-1993 The Regents of the University of California. # Copyright (c) 1994-1996 Sun Microsystems, Inc. -# Copyright (c) 1998-1999 by Scriptics Corporation. +# Copyright (c) 1998-2000 by Scriptics Corporation. # # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: source.test,v 1.6 2000/04/10 17:19:04 ericm Exp $ +# RCS: @(#) $Id: source.test,v 1.7 2000/05/11 00:16:53 hobbs Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -179,6 +179,12 @@ test source-6.1 {source is binary ok} { source source.file string length $x } 5 +test source-6.2 {source skips everything after Ctrl-Z: Bug 2040} { + set x {} + makeFile [list set x "ab\32c"] source.file + source source.file + string length $x +} 2 # cleanup catch {::tcltest::removeFile source.file} |