summaryrefslogtreecommitdiff
path: root/t/op/write.t
diff options
context:
space:
mode:
authorBrad Gilbert <b2gills@gmail.com>2010-12-07 16:17:02 -0600
committerFather Chrysostomos <sprout@cpan.org>2010-12-08 11:16:06 -0800
commit951af6b5343ac2be493fd6a9672c16f164ea2f7c (patch)
treec12714c96dc7215ac78bb0ccb84972e9b8f2a57f /t/op/write.t
parent3aadd5cd55cb7dedef11ffce3eef74f924ccd1bb (diff)
downloadperl-951af6b5343ac2be493fd6a9672c16f164ea2f7c.tar.gz
Replaced '1 while unlink' with 'unlink_all' in t/op/write.t
Diffstat (limited to 't/op/write.t')
-rw-r--r--t/op/write.t16
1 files changed, 8 insertions, 8 deletions
diff --git a/t/op/write.t b/t/op/write.t
index 4038f4328e..b5c2210309 100644
--- a/t/op/write.t
+++ b/t/op/write.t
@@ -95,7 +95,7 @@ now @<<the@>>>> for all@|||||men to come @<<<<
.
open(OUT, '>Op_write.tmp') || die "Can't create Op_write.tmp";
-END { 1 while unlink 'Op_write.tmp' }
+END { unlink_all 'Op_write.tmp' }
$fox = 'foxiness';
$good = 'good';
@@ -115,7 +115,7 @@ the course
of huma...
now is the time for all good men to come to\n";
-is cat('Op_write.tmp'), $right and do { 1 while unlink 'Op_write.tmp'; };
+is cat('Op_write.tmp'), $right and unlink_all 'Op_write.tmp';
$fox = 'wolfishness';
my $fox = 'foxiness'; # Test a lexical variable.
@@ -154,7 +154,7 @@ becomes
necessary
now is the time for all good men to come to\n";
-is cat('Op_write.tmp'), $right and do { 1 while unlink 'Op_write.tmp'; };
+is cat('Op_write.tmp'), $right and unlink_all 'Op_write.tmp';
eval <<'EOFORMAT';
format OUT2 =
@@ -195,7 +195,7 @@ becomes
necessary
now is the time for all good men to come to\n";
-is cat('Op_write.tmp'), $right and do { 1 while unlink 'Op_write.tmp' };
+is cat('Op_write.tmp'), $right and unlink_all 'Op_write.tmp';
# formline tests
@@ -248,7 +248,7 @@ close OUT3 or die "Could not close: $!";
$right =
"fit\n";
-is cat('Op_write.tmp'), $right and do { 1 while unlink 'Op_write.tmp' };
+is cat('Op_write.tmp'), $right and unlink_all 'Op_write.tmp';
# test lexicals and globals
@@ -276,7 +276,7 @@ format OUT4 =
open OUT4, ">Op_write.tmp" or die "Can't create Op_write.tmp";
write (OUT4);
close OUT4 or die "Could not close: $!";
-is cat('Op_write.tmp'), "1\n" and do { 1 while unlink "Op_write.tmp" };
+is cat('Op_write.tmp'), "1\n" and unlink_all "Op_write.tmp";
eval <<'EOFORMAT';
format OUT10 =
@@ -293,7 +293,7 @@ write(OUT10);
close OUT10 or die "Could not close: $!";
$right = " 12.95 00012.95\n";
-is cat('Op_write.tmp'), $right and do { 1 while unlink 'Op_write.tmp' };
+is cat('Op_write.tmp'), $right and unlink_all 'Op_write.tmp';
eval <<'EOFORMAT';
format OUT11 =
@@ -316,7 +316,7 @@ $right =
"00012.95
1 0#
10 #\n";
-is cat('Op_write.tmp'), $right and do { 1 while unlink 'Op_write.tmp' };
+is cat('Op_write.tmp'), $right and unlink_all 'Op_write.tmp';
{
my $test = curr_test();