Skip to content

Commit

Permalink
Take care that file.txt is cleaned up in test scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Mar 1, 2009
1 parent 3ac61cc commit 72b0d61
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
3 changes: 1 addition & 2 deletions build/templates/Makefile.in
Expand Up @@ -298,8 +298,7 @@ clean-test:
t/php/*.pir \
t/php/*.out \
t/pmc/*.pir \
pipp_test_run.tar.gz \
file.txt
pipp_test_run.tar.gz

clean-hash:
$(RM_F) "$(HASH_OBJS)"
Expand Down
1 change: 1 addition & 0 deletions t/php/builtin.t
Expand Up @@ -106,6 +106,7 @@ CODE
bool(false)
OUT

unlink 'file.txt' if -f 'file.txt';

# Local Variables:
# mode: cperl
Expand Down
2 changes: 1 addition & 1 deletion t/php/file.t
Expand Up @@ -26,8 +26,8 @@ use lib "$FindBin::Bin/../../../../lib", "$FindBin::Bin/../../lib";
use Test::More tests => 10;
use Parrot::Test;


unlink 'file.txt' if -f 'file.txt';

open my $X, '>', 'file.txt';
binmode $X, ':raw';
print {$X} "line 1\n";
Expand Down
2 changes: 1 addition & 1 deletion t/php/filestat.t
Expand Up @@ -60,7 +60,7 @@ CODE
21
OUT

unlink 'file.txt' if (-f 'file.txt');
unlink 'file.txt' if -f 'file.txt';


# Local Variables:
Expand Down
2 changes: 2 additions & 0 deletions t/php/gmp.t
Expand Up @@ -287,6 +287,8 @@ CODE
-1
OUT

unlink 'file.txt' if -f 'file.txt';

# Local Variables:
# mode: cperl
# cperl-indent-level: 4
Expand Down
4 changes: 2 additions & 2 deletions t/php/sha1.t
Expand Up @@ -67,8 +67,6 @@ CODE
c12252ceda8be8994d5fa0290a47231c1d16aae3
OUT

unlink 'file.txt' if -f 'file.txt';

language_output_is( 'Pipp', <<'CODE', <<'OUT', 'sha1_file(nofile)' );
<?php
echo sha1_file('nofile.txt'), "\n";
Expand All @@ -77,6 +75,8 @@ CODE

OUT

unlink 'file.txt' if -f 'file.txt';

# Local Variables:
# mode: cperl
# cperl-indent-level: 4
Expand Down

0 comments on commit 72b0d61

Please sign in to comment.