summaryrefslogtreecommitdiff
path: root/t/io
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-04-17 12:17:42 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-04-17 12:17:42 +0000
commit5319f5cda006254c54e21c2a144c8f88da330a7f (patch)
treea0887a1b876a53d83084e28c1e032c6471fc5beb /t/io
parentbde417e1a2abaeddb72f93c24d4b6f59f836872a (diff)
downloadperl-5319f5cda006254c54e21c2a144c8f88da330a7f.tar.gz
Test tweaks from mjd and Benjamin Goldberg.
p4raw-id: //depot/perl@15964
Diffstat (limited to 't/io')
-rw-r--r--t/io/full.t5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/io/full.t b/t/io/full.t
index d59689fbe7..917050f037 100644
--- a/t/io/full.t
+++ b/t/io/full.t
@@ -4,7 +4,7 @@
# 20020416 mjd-perl-patch+@plover.com
unless (-c "/dev/full" && open FULL, "> /dev/full") {
- print "1..0\n"; exit;
+ print "1..0\n"; exit 0;
}
my $z;
@@ -14,11 +14,12 @@ print FULL "I like pie.\n" ? print "ok 1\n" : print "not ok 1\n";
# Should fail
$z = close(FULL);
print $z ? "not ok 2 # z=$z; $!\n" : "ok 2\n";
-print $!{ENOSPC} ? "ok 3\n" : print "not ok 3\n";
+print $!{ENOSPC} ? "ok 3\n" : "not ok 3\n";
unless (open FULL, "> /dev/full") {
print "# couldn't open /dev/full the second time: $!\n";
print "not ok $_\n" for 4..6;
+ exit 0;
}
select FULL; $| = 1; select STDOUT;