summaryrefslogtreecommitdiffstats
path: root/tests/pid.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pid.test')
-rw-r--r--tests/pid.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pid.test b/tests/pid.test
index 613d01f..39838d9 100644
--- a/tests/pid.test
+++ b/tests/pid.test
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: pid.test,v 1.9 2003/10/07 16:37:41 dgp Exp $
+# RCS: @(#) $Id: pid.test,v 1.10 2004/02/25 23:56:59 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -33,7 +33,7 @@ test pid-1.2 {pid command} -constraints {unixOrPc unixExecs} -setup {
set path(test1) [makeFile {} test1]
file delete $path(test1)
} -body {
- set f [open [format {| echo foo | cat {>%s}} $path(test1)] w]
+ set f [open |[list echo foo | cat >$path(test1)] w]
set pids [pid $f]
close $f
list [llength $pids] [regexp {^[0-9]+$} [lindex $pids 0]] \