if (-l $file) {
ok(1, "$file is a symlink");
} else {
- local $TODO;
- $TODO = 'schema updates are not required to be strict now' if $file =~ m{^sql/Pg-upgrade2};
-
- my $command = "$perlapp -c$T -I modules/fallback -I modules/override $file 2>&1";
+ my $command = "$perlapp -w -c$T -Imodules/fallback -Imodules/override -It -MSupport::CanonialGlobals $file 2>&1";
my $loginfo=`$command`;
if ($loginfo =~ /syntax ok$/im) {
--- /dev/null
+package Support::CanonialGlobals;
+
+my @globals = qw(
+ $::lxdebug
+ $::auth
+ %::myconfig
+ $::form
+ %::lx_office_conf
+ $::locale
+ $::dispatcher
+ $::instance_conf
+ %::request
+);
+
+sub import {
+ eval "$_" for @globals;
+}
use strict;
use lib 't';
use Support::Files;
+use Support::CanonialGlobals ();
my (@globals, $testcount);
BEGIN {
- @globals = qw(lxdebug auth myconfig form lx_office_conf locale dispatcher instance_conf request);
+ @globals = map { s/[^a-z_]//; $_ } @Support::CanonialGlobals::globals;
$testcount = scalar(@Support::Files::testitems);
}