diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-05-11 17:50:49 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-05-11 17:50:49 +0000 |
commit | 220939e6fe5e4dc50b0921e74e7b08bf1f26aa37 (patch) | |
tree | 1f1ca2c8b7498e074e0419451cb22a01bd7ab804 /t | |
parent | 44cb023c103cc81b473c5000d0fc536254700a93 (diff) | |
download | perl-220939e6fe5e4dc50b0921e74e7b08bf1f26aa37.tar.gz |
Use test.pl.
p4raw-id: //depot/perl@19491
Diffstat (limited to 't')
-rw-r--r-- | t/io/fflush.t | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/t/io/fflush.t b/t/io/fflush.t index eab9a01c97..19143c6304 100644 --- a/t/io/fflush.t +++ b/t/io/fflush.t @@ -3,6 +3,7 @@ BEGIN { chdir 't' if -d 't'; @INC = '../lib'; + require './test.pl'; } # Script to test auto flush on fork/exec/system/qx. The idea is to @@ -132,7 +133,11 @@ for (qw(system qx popen)) { ++$t; } -my $cmd = qq[$runperl -e "print qq[ok \$_\\n] for ($t..$t+2)"]; +my $cmd = _create_runperl( + switches => ['-l'], + prog => + sprintf('print qq[ok $_] for (%d..%d)', $t, $t+2)); +print "# cmd = '$cmd'\n"; open my $CMD, "$cmd |" or die "Can't open pipe to '$cmd': $!"; while (<$CMD>) { system("$runperl -e 0"); |