Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/I18N-Collate/t/I18N-Collate.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
use strict;
no warnings;

use Config;
BEGIN {
require Config; Config->import;
if (!$::Config{d_setlocale} || $::Config{ccflags} =~ /\bD?NO_LOCALE\b/) {
print "1..0\n";
exit;
Expand Down
2 changes: 1 addition & 1 deletion dist/IO/t/io_linenum.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ my $File;

BEGIN {
$File = __FILE__;
require strict; strict->import();
}
use strict;

use Test::More tests => 12;

Expand Down
2 changes: 1 addition & 1 deletion dist/Safe/t/safe1.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!./perl -w
$|=1;
use Config;
BEGIN {
require Config; Config->import;
if ($Config{'extensions'} !~ /\bOpcode\b/ && $Config{'osname'} ne 'VMS') {
print "1..0\n";
exit 0;
Expand Down
2 changes: 1 addition & 1 deletion dist/Safe/t/safe2.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!./perl -w
$|=1;
use Config;
BEGIN {
require Config; Config->import;
if ($Config{'extensions'} !~ /\bOpcode\b/ && $Config{'osname'} ne 'VMS') {
print "1..0\n";
exit 0;
Expand Down
2 changes: 1 addition & 1 deletion dist/Safe/t/safe3.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!perl -w

use Config;
BEGIN {
require Config; Config->import;
if ($Config{'extensions'} !~ /\bOpcode\b/
&& $Config{'extensions'} !~ /\bPOSIX\b/
&& $Config{'osname'} ne 'VMS')
Expand Down
3 changes: 1 addition & 2 deletions dist/Safe/t/safeload.t
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!perl

use Config;
BEGIN {
require Config;
Config->import;
if ($Config{'extensions'} !~ /\bOpcode\b/) {
print "1..0\n";
exit 0;
Expand Down
2 changes: 1 addition & 1 deletion dist/Safe/t/saferegexp.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!perl -w

use Config;
BEGIN {
require Config; Config->import;
if ($Config{'extensions'} !~ /\bOpcode\b/) {
print "1..0\n";
exit 0;
Expand Down
3 changes: 1 addition & 2 deletions dist/Safe/t/safesecurity.t
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!perl

use Config;
BEGIN {
require Config;
Config->import;
if ($Config{'extensions'} !~ /\bOpcode\b/) {
print "1..0\n";
exit 0;
Expand Down
3 changes: 1 addition & 2 deletions dist/Safe/t/safesig.t
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!perl

use Config;
BEGIN {
require Config;
Config->import;
if ($Config{'extensions'} !~ /\bOpcode\b/) {
print "1..0\n";
exit 0;
Expand Down
2 changes: 1 addition & 1 deletion dist/Safe/t/safesort.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!perl -w
$|=1;
use Config;
BEGIN {
require Config; Config->import;
if ($Config{'extensions'} !~ /\bOpcode\b/ && $Config{'osname'} ne 'VMS') {
print "1..0\n";
exit 0;
Expand Down
3 changes: 1 addition & 2 deletions dist/Safe/t/safeuniversal.t
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!perl

use Config;
BEGIN {
require Config;
Config->import;
if ($Config{'extensions'} !~ /\bOpcode\b/) {
print "1..0\n";
exit 0;
Expand Down
2 changes: 1 addition & 1 deletion dist/Safe/t/safeutf8.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!perl -w
$|=1;
use Config;
BEGIN {
require Config; Config->import;
if ($Config{'extensions'} !~ /\bOpcode\b/ && $Config{'osname'} ne 'VMS') {
print "1..0\n";
exit 0;
Expand Down
2 changes: 1 addition & 1 deletion dist/Safe/t/safewrap.t
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!perl -w

$|=1;
use Config;
BEGIN {
require Config; Config->import;
if ($Config{'extensions'} !~ /\bOpcode\b/ && $Config{'osname'} ne 'VMS') {
print "1..0\n";
exit 0;
Expand Down
2 changes: 1 addition & 1 deletion ext/Devel-Peek/t/Peek.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!./perl -T

use Config;
BEGIN {
require Config; Config->import;
if ($Config{'extensions'} !~ /\bDevel\/Peek\b/) {
print "1..0 # Skip: Devel::Peek was not built\n";
exit 0;
Expand Down
4 changes: 2 additions & 2 deletions ext/Fcntl/t/syslfs.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
# stdio: open(), tell(), seek(), print(), read() is tested in t/op/lfs.t.
# If you modify/add tests here, remember to update also t/op/lfs.t.

use Config;
BEGIN {
require Config; Config->import;
# Don't bother if there are no quad offsets.
if ($Config{lseeksize} < 8) {
print "1..0 # Skip: no 64-bit file offsets\n";
exit(0);
}
require Fcntl; Fcntl->import(qw(/^O_/ /^SEEK_/));
}
use Fcntl qw(/^O_/ /^SEEK_/);

use strict;
use File::Temp 'tempfile';
Expand Down
2 changes: 1 addition & 1 deletion ext/IPC-Open3/t/IPC-Open3.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!./perl -w

use Config;
BEGIN {
require Config; Config->import;
if (!$Config{'d_fork'}
# open2/3 supported on win32
&& $^O ne 'MSWin32')
Expand Down
2 changes: 1 addition & 1 deletion ext/Opcode/t/Opcode.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

$|=1;

use Config;
BEGIN {
require Config; Config->import;
if ($Config{'extensions'} !~ /\bOpcode\b/ && $Config{'osname'} ne 'VMS') {
print "1..0\n";
exit 0;
Expand Down
2 changes: 1 addition & 1 deletion ext/Opcode/t/ops.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!./perl

use Config;
BEGIN {
require Config; Config->import;
if ($Config{'extensions'} !~ /\bOpcode\b/ && $Config{'osname'} ne 'VMS') {
print "1..0\n";
exit 0;
Expand Down
2 changes: 1 addition & 1 deletion ext/POSIX/t/mb.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
# the Perl one. So we run the tests in a separate "fresh_perl" process
# with the correct LC_CTYPE set in the environment.

use Config;
BEGIN {
require Config; Config->import;
if ($^O ne 'VMS' and $Config{'extensions'} !~ /\bPOSIX\b/) {
print "1..0\n";
exit 0;
Expand Down
2 changes: 1 addition & 1 deletion ext/POSIX/t/posix.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!./perl

use Config;
BEGIN {
require Config; Config->import;
if ($^O ne 'VMS' and $Config{'extensions'} !~ /\bPOSIX\b/) {
print "1..0\n";
exit 0;
Expand Down
2 changes: 1 addition & 1 deletion ext/POSIX/t/taint.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!./perl -Tw

use Config;
BEGIN {
require Config; Config->import;
if ($^O ne 'VMS' and $Config{'extensions'} !~ /\bPOSIX\b/) {
print "1..0\n";
exit 0;
Expand Down
2 changes: 1 addition & 1 deletion ext/Sys-Hostname/t/Hostname.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!./perl

use Config;
BEGIN {
require Config; Config->import;
if ($Config{'extensions'} !~ /\bSys\/Hostname\b/) {
print "1..0 # Skip: Sys::Hostname was not built\n";
exit 0;
Expand Down
2 changes: 1 addition & 1 deletion ext/XS-APItest/t/my_cxt.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# DAPM Dec 2005

my $threads;
use Config;
BEGIN {
require Config; Config->import;
$threads = $Config{'useithreads'};
# must 'use threads' before 'use Test::More'
eval 'use threads' if $threads;
Expand Down
2 changes: 1 addition & 1 deletion ext/XS-Typemap/t/Typemap.t
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use Config;
BEGIN {
require Config; Config->import;
if ($Config{'extensions'} !~ /\bXS\/Typemap\b/) {
print "1..0 # Skip: XS::Typemap was not built\n";
exit 0;
Expand Down
6 changes: 3 additions & 3 deletions lib/AnyDBM_File.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
require Config; Config->import;
require Test::More; Test::More->import;
plan(tests, 12);
}
use Config;
use Test::More;
plan(tests, 12);

require AnyDBM_File;
use Fcntl;
Expand Down
4 changes: 1 addition & 3 deletions lib/Net/hostent.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ BEGIN {
}

use Test::More;
use Config;

BEGIN {
require Config; Config->import;
if ($Config{'extensions'} !~ /\bSocket\b/ &&
!(($^O eq 'VMS') && $Config{d_socket}))
{
Expand All @@ -19,8 +19,6 @@ BEGIN {
}
}

use Test::More;

BEGIN { use_ok 'Net::hostent' }

# Remind me to add this to Test::More.
Expand Down
2 changes: 1 addition & 1 deletion lib/locale.t
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ BEGIN {
exit;
}
$| = 1;
require Config; Config->import;
}
use Config;

use feature 'fc';
my @langinfo;
Expand Down
2 changes: 1 addition & 1 deletion lib/open.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
require Config; Config->import;
require './test.pl';
require './charset_tools.pl';
}
use Config;

plan 11;

Expand Down
2 changes: 1 addition & 1 deletion t/io/errnosig.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ BEGIN {
set_up_inc( qw(. ../lib) );
}

require Config; Config->import;
use Config;
plan(tests => 1);

SKIP: {
Expand Down
2 changes: 1 addition & 1 deletion t/io/pipe.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ BEGIN {
chdir 't' if -d 't';
require './test.pl';
set_up_inc('../lib');
require Config; Config->import;
}
use Config;
if (!$Config{'d_fork'}) {
skip_all("fork required to pipe");
}
Expand Down
2 changes: 1 addition & 1 deletion t/io/semctl.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ BEGIN {
@INC = '../lib' if -d '../lib' && -d '../ext';

require "./test.pl";
require Config; Config->import;
}
use Config;

use strict;
use warnings;
Expand Down
3 changes: 1 addition & 2 deletions t/lib/commonsense.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ BEGIN {
@INC = '../lib';
require './test.pl';
}
use Config;

plan( tests => 1);

require Config; Config->import;

if (($Config{'extensions'} !~ /\bFcntl\b/) ){
BAIL_OUT("Perl configured without Fcntl module");
}
Expand Down
1 change: 0 additions & 1 deletion t/op/lc.t
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ BEGIN {
chdir 't' if -d 't';
require './test.pl';
set_up_inc('../lib');
require Config; Config->import;
skip_all_without_unicode_tables();
require './charset_tools.pl';
require './loc_tools.pl'; # Contains find_utf8_ctype_locale()
Expand Down
2 changes: 1 addition & 1 deletion t/op/quotemeta.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ BEGIN {
chdir 't' if -d 't';
require "./test.pl";
set_up_inc( qw(../lib .) );
require Config; Config->import;
require "./loc_tools.pl";
}
use Config;

plan tests => 60;

Expand Down
2 changes: 1 addition & 1 deletion t/re/anyof.t
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ BEGIN {
chdir 't' if -d 't';
require './test.pl';
set_up_inc('../lib','.','../ext/re');
require Config; Config->import;
skip_all('no re module') unless defined &DynaLoader::boot_DynaLoader;
}
use Config;

# An array is used instead of a hash, so that the tests are carried out in the
# order given by this file. Even-numbered indices are the regexes to compile.
Expand Down
1 change: 0 additions & 1 deletion t/re/fold_grind.pl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ BEGIN
chdir 't' if -d 't';
require './test.pl';
set_up_inc('../lib');
require Config; Config->import;
skip_all_if_miniperl("no dynamic loading on miniperl, no Encode nor POSIX");
if ($^O eq 'dec_osf') {
skip_all("$^O cannot handle this test");
Expand Down
2 changes: 1 addition & 1 deletion t/re/pat.t
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ BEGIN {
chdir 't' if -d 't';
require './test.pl';
set_up_inc('../lib', '.', '../ext/re');
require Config; Config->import;
require './charset_tools.pl';
require './loc_tools.pl';
}
use Config;

skip_all_without_unicode_tables();

Expand Down
2 changes: 1 addition & 1 deletion t/re/speed.t
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ BEGIN {
chdir 't' if -d 't';
require './test.pl';
set_up_inc('../lib','.','../ext/re');
require Config; Config->import;
}
use Config;

skip_all('no re module') unless defined &DynaLoader::boot_DynaLoader;
skip_all_without_unicode_tables();
Expand Down
1 change: 0 additions & 1 deletion t/re/stclass_threads.t
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ BEGIN {
chdir 't' if -d 't';
require './test.pl';
set_up_inc('../lib', '.', '../ext/re');
require Config; Config->import;
}

skip_all_without_config('useithreads');
Expand Down
Loading
Loading