summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/001compile.t2
-rw-r--r--t/002goodperl.t8
-rw-r--r--t/004template.t2
-rw-r--r--t/005whitespace.t2
-rw-r--r--t/006spellcheck.t2
-rw-r--r--t/007util.t2
-rw-r--r--t/008filter.t2
-rw-r--r--t/009bugwords.t2
-rw-r--r--t/010dependencies.t2
-rw-r--r--t/011pod.t2
-rw-r--r--t/012throwables.t2
-rw-r--r--t/013dbschema.t2
-rw-r--r--t/014critic-core.t5
-rw-r--r--t/Support/Files.pm2
-rw-r--r--t/Support/Systemexec.pm2
-rw-r--r--t/Support/Templates.pm2
16 files changed, 22 insertions, 19 deletions
diff --git a/t/001compile.t b/t/001compile.t
index e061b06c6..d9ec1b28d 100644
--- a/t/001compile.t
+++ b/t/001compile.t
@@ -10,7 +10,7 @@
#Bugzilla Test 1#
###Compilation###
-use 5.10.1;
+use 5.14.0;
use strict;
use warnings;
diff --git a/t/002goodperl.t b/t/002goodperl.t
index 7b2e74acc..400483a5a 100644
--- a/t/002goodperl.t
+++ b/t/002goodperl.t
@@ -10,7 +10,7 @@
#Bugzilla Test 2#
####GoodPerl#####
-use 5.10.1;
+use 5.14.0;
use strict;
use warnings;
@@ -88,16 +88,16 @@ foreach my $file (@testitems) {
next;
}
while (my $file_line = <FILE>) {
- $found_use_perl = 1 if $file_line =~ m/^\s*use 5.10.1/;
+ $found_use_perl = 1 if $file_line =~ m/^\s*use 5\.14\.0/;
$found_use_strict = 1 if $file_line =~ m/^\s*use strict/;
$found_use_warnings = 1 if $file_line =~ m/^\s*use warnings/;
last if ($found_use_perl && $found_use_strict && $found_use_warnings);
}
close (FILE);
if ($found_use_perl) {
- ok(1,"$file requires Perl 5.10.1");
+ ok(1,"$file requires Perl 5.14.0");
} else {
- ok(0,"$file DOES NOT require Perl 5.10.1 --WARNING");
+ ok(0,"$file DOES NOT require Perl 5.14.0 --WARNING");
}
if ($found_use_strict) {
diff --git a/t/004template.t b/t/004template.t
index 909f1a231..e6c241cc0 100644
--- a/t/004template.t
+++ b/t/004template.t
@@ -9,7 +9,7 @@
#Bugzilla Test 4#
####Templates####
-use 5.10.1;
+use 5.14.0;
use strict;
use warnings;
diff --git a/t/005whitespace.t b/t/005whitespace.t
index be13890bb..5529392f6 100644
--- a/t/005whitespace.t
+++ b/t/005whitespace.t
@@ -9,7 +9,7 @@
#Bugzilla Test 5#
#####no_tabs#####
-use 5.10.1;
+use 5.14.0;
use strict;
use warnings;
diff --git a/t/006spellcheck.t b/t/006spellcheck.t
index 2f6dbbf76..e675398f1 100644
--- a/t/006spellcheck.t
+++ b/t/006spellcheck.t
@@ -10,7 +10,7 @@
#Bugzilla Test 6#
####Spelling#####
-use 5.10.1;
+use 5.14.0;
use strict;
use warnings;
diff --git a/t/007util.t b/t/007util.t
index b8e9505d8..8f54e828e 100644
--- a/t/007util.t
+++ b/t/007util.t
@@ -9,7 +9,7 @@
#Bugzilla Test 7#
#####Util.pm#####
-use 5.10.1;
+use 5.14.0;
use strict;
use warnings;
diff --git a/t/008filter.t b/t/008filter.t
index 65fecfb1f..cd0af0735 100644
--- a/t/008filter.t
+++ b/t/008filter.t
@@ -15,7 +15,7 @@
# Sample exploit code: '>"><script>alert('Oh dear...')</script>
-use 5.10.1;
+use 5.14.0;
use strict;
use warnings;
diff --git a/t/009bugwords.t b/t/009bugwords.t
index 740cbf6aa..af83d1eac 100644
--- a/t/009bugwords.t
+++ b/t/009bugwords.t
@@ -15,7 +15,7 @@
# "[% terms.bug %]". This test makes sure the relevant words aren't used
# bare.
-use 5.10.1;
+use 5.14.0;
use strict;
use warnings;
diff --git a/t/010dependencies.t b/t/010dependencies.t
index 777d42ed1..4b7ca223d 100644
--- a/t/010dependencies.t
+++ b/t/010dependencies.t
@@ -10,7 +10,7 @@
#Bugzilla Test 10#
## dependencies ##
-use 5.10.1;
+use 5.14.0;
use strict;
use warnings;
diff --git a/t/011pod.t b/t/011pod.t
index 380b866c9..8a8339672 100644
--- a/t/011pod.t
+++ b/t/011pod.t
@@ -10,7 +10,7 @@
#Bugzilla Test 11#
##POD validation##
-use 5.10.1;
+use 5.14.0;
use strict;
use warnings;
diff --git a/t/012throwables.t b/t/012throwables.t
index cb00eaf78..9d709c6ab 100644
--- a/t/012throwables.t
+++ b/t/012throwables.t
@@ -11,7 +11,7 @@
#Bugzilla Test 12#
######Errors######
-use 5.10.1;
+use 5.14.0;
use strict;
use warnings;
diff --git a/t/013dbschema.t b/t/013dbschema.t
index 8313444d7..9770593aa 100644
--- a/t/013dbschema.t
+++ b/t/013dbschema.t
@@ -12,7 +12,7 @@
# Check the Bugzilla database schema to ensure no field names conflict
# with SQL reserved words.
-use 5.10.1;
+use 5.14.0;
use strict;
use warnings;
diff --git a/t/014critic-core.t b/t/014critic-core.t
index e38e64210..fb3bc279c 100644
--- a/t/014critic-core.t
+++ b/t/014critic-core.t
@@ -7,9 +7,12 @@
# Enforce high standards against code that will be installed
-use 5.10.1;
+use 5.14.0;
use strict;
use warnings;
+
+use lib qw(. lib local/lib/perl5 t);
+
use Test::More;
use File::Spec::Functions ':ALL';
diff --git a/t/Support/Files.pm b/t/Support/Files.pm
index e06cda738..e4e8f1ff8 100644
--- a/t/Support/Files.pm
+++ b/t/Support/Files.pm
@@ -8,7 +8,7 @@
package Support::Files;
-use 5.10.1;
+use 5.14.0;
use strict;
use warnings;
diff --git a/t/Support/Systemexec.pm b/t/Support/Systemexec.pm
index e73763f8f..c3cf5a21b 100644
--- a/t/Support/Systemexec.pm
+++ b/t/Support/Systemexec.pm
@@ -7,7 +7,7 @@
package Support::Systemexec;
-use 5.10.1;
+use 5.14.0;
use strict;
use warnings;
diff --git a/t/Support/Templates.pm b/t/Support/Templates.pm
index d17c7334b..2f53592a8 100644
--- a/t/Support/Templates.pm
+++ b/t/Support/Templates.pm
@@ -7,7 +7,7 @@
package Support::Templates;
-use 5.10.1;
+use 5.14.0;
use strict;
use warnings;