From: Jarkko Hietaniemi Date: Tue, 5 Dec 2000 13:51:28 +0000 (+0000) Subject: Integrate the "skip" messages to explain(). X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d731b4819e3a17fb0454058c8df4908132dab0c1;p=p5sagit%2Fp5-mst-13.2.git Integrate the "skip" messages to explain(). p4raw-id: //depot/perl@7988 --- diff --git a/t/lib/syslfs.t b/t/lib/syslfs.t index 39a57f3..cec839b 100644 --- a/t/lib/syslfs.t +++ b/t/lib/syslfs.t @@ -26,21 +26,28 @@ sub bye { exit(0); } +my $explained; + sub explain { - print <big") or do { warn "open failed: $!\n"; bye }; binmode BIG; if ($r or not seek(BIG, 5_000_000_000, $SEEK_SET)) { my $err = $r ? 'signal '.($r & 0x7f) : $!; - print "1..0 # Skip: seeking past 2GB failed: $err\n"; - explain(); + explain("seeking past 2GB failed: $err"); bye(); } @@ -138,11 +144,12 @@ my $close = close BIG; print "# close failed: $!\n" unless $close; unless ($print && $close) { if ($! =~/too large/i) { - print "1..0 # Skip: writing past 2GB failed: process limits?\n"; + explain("writing past 2GB failed: process limits?"); } elsif ($! =~ /quota/i) { - print "1..0 # Skip: filesystem quota limits?\n"; + explain("filesystem quota limits?"); + } else { + explain("error: $!"); } - explain(); bye(); } @@ -151,8 +158,7 @@ unless ($print && $close) { print "# @s\n"; unless ($s[7] == 5_000_000_003) { - print "1..0 # Skip: not configured to use large files?\n"; - explain(); + explain("kernel/fs not configured to use large files?"); bye(); } @@ -224,7 +230,7 @@ print "ok 16\n"; fail unless $zero eq "\0\0\0"; print "ok 17\n"; -explain if $fail; +explain() if $fail; bye(); # does the necessary cleanup