summaryrefslogtreecommitdiffstats
path: root/tests/unixInit.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-04-27 21:07:49 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-04-27 21:07:49 (GMT)
commitfd15e0bf67810cb7675d509031bf0c4f59f62d0a (patch)
tree5fcee4df972f23478cdb97314099534e5f02904f /tests/unixInit.test
parent24fcde64c436af06b6824359ff50920a2933af27 (diff)
downloadtcl-fd15e0bf67810cb7675d509031bf0c4f59f62d0a.zip
tcl-fd15e0bf67810cb7675d509031bf0c4f59f62d0a.tar.gz
tcl-fd15e0bf67810cb7675d509031bf0c4f59f62d0a.tar.bz2
* tests/unixInit.test (7.1): Alternative fix for the
2005-04-22 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 88a9638..f4a2fc7 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.30.2.11 2005/04/21 23:42:28 das Exp $
+# RCS: @(#) $Id: unixInit.test,v 1.30.2.12 2005/04/27 21:07:52 dgp Exp $
package require tcltest 2
namespace import -force ::tcltest::*
@@ -364,12 +364,12 @@ test unixInit-7.1 {closed standard channel: Bug 772288} -constraints {
unixOnly 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