#!/usr/local/bin/perl -w
-use lib qw(t/lib);
-
-# Due to a bug in older versions of MakeMaker & Test::Harness, we must
-# ensure the blib's are in @INC, else we might use the core CGI.pm
-use lib qw(blib/lib blib/arch);
+BEGIN {
+ chdir 't' if -d 't';
+ if ($ENV{PERL_CORE}) {
+ @INC = '../lib';
+ } else {
+ # Due to a bug in older versions of MakeMaker & Test::Harness, we must
+ # ensure the blib's are in @INC, else we might use the core CGI.pm
+ unshift @INC, qw( ../blib/lib ../blib/arch lib );
+ }
+}
use strict;
use Test::More tests => 1;
# -*- Mode: cperl; coding: utf-8; cperl-indent-level: 2 -*-
#!/usr/local/bin/perl -w
-use strict;
-use lib qw(t/lib);
+BEGIN {
+ chdir 't' if -d 't';
+ if ($ENV{PERL_CORE}) {
+ @INC = '../lib';
+ } else {
+ # Due to a bug in older versions of MakeMaker & Test::Harness, we must
+ # ensure the blib's are in @INC, else we might use the core CGI.pm
+ unshift @INC, qw( ../blib/lib ../blib/arch lib );
+ }
+}
-# Due to a bug in older versions of MakeMaker & Test::Harness, we must
-# ensure the blib's are in @INC, else we might use the core CGI.pm
-use lib qw(blib/lib blib/arch);
+use strict;
use Test::More tests => 42;
use IO::Handle;
open(STDOUT, ">&REAL_STDOUT");
my $fname = $0;
$fname =~ tr/<>-/\253\273\255/; # _warn does this so we have to also
-is( $fake_out, "<!-- warning: There is a problem at $fname line 100. -->\n",
+is( $fake_out, "<!-- warning: There is a problem at $fname line 106. -->\n",
'warningsToBrowser() on' );
is($CGI::Carp::EMIT_WARNINGS, 1, "Warnings turned off");
#!/usr/local/bin/perl -w
-use lib qw(t/lib);
+BEGIN {
+ chdir 't' if -d 't';
+ if ($ENV{PERL_CORE}) {
+ @INC = '../lib';
+ } else {
+ # Due to a bug in older versions of MakeMaker & Test::Harness, we must
+ # ensure the blib's are in @INC, else we might use the core CGI.pm
+ unshift @INC, qw( ../blib/lib ../blib/arch lib );
+ }
+}
use strict;
-# Due to a bug in older versions of MakeMaker & Test::Harness, we must
-# ensure the blib's are in @INC, else we might use the core CGI.pm
-use lib qw(blib/lib blib/arch);
-
use Test::More tests => 86;
use CGI::Util qw(escape unescape);
use POSIX qw(strftime);
#!./perl -w
-use lib qw(t/lib);
-
-# Due to a bug in older versions of MakeMaker & Test::Harness, we must
-# ensure the blib's are in @INC, else we might use the core CGI.pm
-use lib qw(blib/lib blib/arch);
+BEGIN {
+ chdir 't' if -d 't';
+ if ($ENV{PERL_CORE}) {
+ @INC = '../lib';
+ } else {
+ # Due to a bug in older versions of MakeMaker & Test::Harness, we must
+ # ensure the blib's are in @INC, else we might use the core CGI.pm
+ unshift @INC, qw( ../blib/lib ../blib/arch lib );
+ }
+}
my $fcgi;
BEGIN {
#!/usr/local/bin/perl -w
-use lib qw(t/lib);
-
-# Due to a bug in older versions of MakeMaker & Test::Harness, we must
-# ensure the blib's are in @INC, else we might use the core CGI.pm
-use lib qw(blib/lib blib/arch);
+BEGIN {
+ chdir 't' if -d 't';
+ if ($ENV{PERL_CORE}) {
+ @INC = '../lib';
+ } else {
+ # Due to a bug in older versions of MakeMaker & Test::Harness, we must
+ # ensure the blib's are in @INC, else we might use the core CGI.pm
+ unshift @INC, qw( ../blib/lib ../blib/arch lib );
+ }
+}
use Test::More tests => 17;
#!/usr/local/bin/perl -w
-use lib qw(t/lib);
-
-# Test ability to retrieve HTTP request info
-######################### We start with some black magic to print on failure.
-use lib '../blib/lib','../blib/arch';
+BEGIN {
+ chdir 't' if -d 't';
+ if ($ENV{PERL_CORE}) {
+ @INC = '../lib';
+ } else {
+ unshift @INC, qw( ../blib/lib ../blib/arch lib );
+ }
+}
BEGIN {$| = 1; print "1..28\n"; }
END {print "not ok 1\n" unless $loaded;}
if (ord("\t") != 9) { $CRLF = "\r\n"; }
-# Web servers on EBCDIC hosts are typically set up to do an EBCDIC -> ASCII
-# translation hence CRLF is used as \r\n within CGI.pm on such machines.
-
if (ord("\t") != 9) { $CRLF = "\r\n"; }
# Set up a CGI environment
#!/usr/local/bin/perl -w
+BEGIN {
+ chdir 't' if -d 't';
+ if ($ENV{PERL_CORE}) {
+ @INC = '../lib';
+ } else {
+ unshift @INC, qw( ../blib/lib ../blib/arch lib );
+ }
+}
# Test ability to retrieve HTTP request info
######################### We start with some black magic to print on failure.
-use lib '../blib/lib','../blib/arch';
BEGIN {$| = 1; print "1..24\n"; }
END {print "not ok 1\n" unless $loaded;}
#!/usr/local/bin/perl -w
+BEGIN {
+ chdir 't' if -d 't';
+ if ($ENV{PERL_CORE}) {
+ @INC = '../lib';
+ } else {
+ unshift @INC, qw( ../blib/lib ../blib/arch lib );
+ }
+}
+
use strict;
-use lib 't/lib','../blib/lib','./blib/lib';
use Test::More tests => 5;
BEGIN { use_ok('CGI::Pretty') };
#!./perl -wT
-use lib qw(t/lib);
-
-# Due to a bug in older versions of MakeMaker & Test::Harness, we must
-# ensure the blib's are in @INC, else we might use the core CGI.pm
-use lib qw(blib/lib blib/arch);
+BEGIN {
+ chdir 't' if -d 't';
+ if ($ENV{PERL_CORE}) {
+ @INC = '../lib';
+ } else {
+ # Due to a bug in older versions of MakeMaker & Test::Harness, we must
+ # ensure the blib's are in @INC, else we might use the core CGI.pm
+ unshift @INC, qw( ../blib/lib ../blib/arch lib );
+ }
+}
use Test::More tests => 12;
#!/usr/local/bin/perl -w
+BEGIN {
+ chdir 't' if -d 't';
+ if ($ENV{PERL_CORE}) {
+ @INC = '../lib';
+ } else {
+ unshift @INC, qw( ../blib/lib ../blib/arch lib );
+ }
+}
+
# Test ability to retrieve HTTP request info
######################### We start with some black magic to print on failure.
-use lib '../blib/lib','../blib/arch';
BEGIN {$| = 1; print "1..33\n"; }
END {print "not ok 1\n" unless $loaded;}
#!/usr/local/bin/perl -w
-use lib qw(t/lib);
-
-# Due to a bug in older versions of MakeMaker & Test::Harness, we must
-# ensure the blib's are in @INC, else we might use the core CGI.pm
-use lib qw(blib/lib blib/arch);
+BEGIN {
+ chdir 't' if -d 't';
+ if ($ENV{PERL_CORE}) {
+ @INC = '../lib';
+ } else {
+ # Due to a bug in older versions of MakeMaker & Test::Harness, we must
+ # ensure the blib's are in @INC, else we might use the core CGI.pm
+ unshift @INC, qw( ../blib/lib ../blib/arch lib );
+ }
+}
use strict;
use Test::More tests => 1;
#!/usr/local/bin/perl -w
+BEGIN {
+ chdir 't' if -d 't';
+ if ($ENV{PERL_CORE}) {
+ @INC = '../lib';
+ } else {
+ unshift @INC, qw( ../blib/lib ../blib/arch lib );
+ }
+}
+
# Test ability to escape() and unescape() punctuation characters
# except for qw(- . _).
######################### We start with some black magic to print on failure.
-use lib '../blib/lib','../blib/arch';
-
BEGIN {$| = 1; print "1..59\n"; }
END {print "not ok 1\n" unless $loaded;}
use Config;