BEGIN {
chdir 't' if -d 't';
@INC = ('../lib');
- unless ($^O eq "cygwin") {
- print "1..0 # skipped: cygwin specific test\n";
- exit 0;
- }
require './test.pl';
+ skip_all('cygwin specific test') unless $^O eq 'cygwin';
}
plan(tests => 16);
print "# max_uv1 = $max_uv1, max_uv2 = $max_uv2, big_iv = $big_iv\n";
print "# max_uv_less3 = $max_uv_less3\n";
if ($max_uv1 ne $max_uv2 or $big_iv > $max_uv1 or $max_uv1 == $max_uv_less3) {
- print "1..0 # skipped: unsigned perl arithmetic is not sane";
- eval { require Config; import Config };
- use vars qw(%Config);
- if ($Config{d_quad} eq 'define') {
- print " (common in 64-bit platforms)";
- }
- print "\n";
- exit 0;
+ eval { require Config; };
+ my $message = 'unsigned perl arithmetic is not sane';
+ $message .= " (common in 64-bit platforms)" if $Config::Config{d_quad};
+ skip_all($message);
}
if ($max_uv_less3 =~ tr/0-9//c) {
- print "1..0 # skipped: this perl stringifies large unsigned integers using E notation\n";
- exit 0;
+ skip_all('this perl stringifies large unsigned integers using E notation');
}
my $st_t = 4*4; # We try 4 initializers and 4 reporters
#!../miniperl -w
BEGIN {
- if ($^O eq 'VMS') {
- print "1..0 # FindExt not portable.\n";
- exit 0;
- }
@INC = qw(../win32 ../lib);
require './test.pl';
+ skip_all('FindExt not portable')
+ if $^O eq 'VMS';
}
use strict;
use Config;