summaryrefslogtreecommitdiffstats
path: root/tests/unixInit.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-04-28 14:24:33 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-04-28 14:24:33 (GMT)
commit0ab970b22ad15d0f56a3d5a53461daedf8bfc5ef (patch)
treed411c68ab4d884b8fa832e626be10383571861b8 /tests/unixInit.test
parent92091ec07127569dc66df5e7e9f41d6994e08ab8 (diff)
downloadtcl-0ab970b22ad15d0f56a3d5a53461daedf8bfc5ef.zip
tcl-0ab970b22ad15d0f56a3d5a53461daedf8bfc5ef.tar.gz
tcl-0ab970b22ad15d0f56a3d5a53461daedf8bfc5ef.tar.bz2
* tests/unixInit.test (7.1): Alternative fix for the
2004-11-11 commit.
Diffstat (limited to 'tests/unixInit.test')
-rw-r--r--tests/unixInit.test12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/unixInit.test b/tests/unixInit.test
index 1b7a6f0..db473df 100644
--- a/tests/unixInit.test
+++ b/tests/unixInit.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: unixInit.test,v 1.46 2005/04/15 22:41:44 dgp Exp $
+# RCS: @(#) $Id: unixInit.test,v 1.47 2005/04/28 14:24:40 dgp Exp $
package require tcltest 2.2
namespace import -force ::tcltest::*
@@ -429,12 +429,12 @@ test unixInit-7.1 {closed standard channel: Bug 772288} -constraints {
unix stdio
} -body {
set tclsh [interpreter]
- makeFile {puts [open /dev/null]} crash.tcl
- makeFile "
+ set crash [makeFile {puts [open /dev/null]} crash.tcl]
+ set crashtest [makeFile "
close stdin
- [list exec $tclsh [file join [temporaryDirectory] crash.tcl]]
- " crashtest.tcl
- exec $tclsh [file join [temporaryDirectory] crashtest.tcl]
+ [list exec $tclsh $crash]
+ " crashtest.tcl]
+ exec $tclsh $crashtest
} -cleanup {
removeFile crash.tcl
removeFile crashtest.tcl