print "1..0 # skipped: cygwin specific test\n";
exit 0;
}
+ require './test.pl';
}
-use Test::More tests => 16;
+plan(tests => 16);
is(Cygwin::winpid_to_pid(Cygwin::pid_to_winpid($$)), $$,
"perl pid translates to itself");
+#!perl -w
use strict;
BEGIN {
- chdir 't' if -d 't';
- @INC = qw(../lib);
+ require './test.pl';
}
use File::Copy ();
use File::Path ();
use File::Spec ();
-use Test::More tests => 10;
+plan(tests => 10);
my $test_dir = File::Spec->catdir(qw(lib deprecate));
chdir $test_dir or die "Can't chdir $test_dir";
sitearchexp => 0,
);
+no warnings 'once';
local %deprecate::Config = (%libdir);
my $module = 'Deprecated.pm';
#!./perl
-BEGIN {
- chdir 't';
- @INC = ('../lib', 'lib');
-}
-
use strict;
use warnings;
-use Test::More tests => 14;
+
+BEGIN {
+ unshift @INC, 'lib';
+ require './test.pl';
+ plan(tests => 14);
+}
use mypragma (); # don't enable this pragma yet
my @symbols;
BEGIN {
- chdir 't';
- @INC = '../lib';
require Config;
if (($Config::Config{'extensions'} !~ /\bB\b/) ){
print "1..0 # Skip -- Perl configured without B module\n";
# S_IFMT is a real subroutine, and acts as control
# SEEK_SET is a proxy constant subroutine.
@symbols = qw(S_IFMT SEEK_SET);
+ require './test.pl';
}
use strict;
use warnings;
-use Test::More tests => 4 * @symbols;
+plan(4 * @symbols);
use B qw(svref_2object GVf_IMPORTED_CV);
use Fcntl @symbols;