my $test_ddl_fn = 't/lib/sqlite.sql';
-my @test_ddl_cmd = qw( -I lib -Mt::lib::ANFANG -- maint/gen_sqlite_schema_files --schema-class DBICTest::Schema );
+my @test_ddl_cmd = qw( -I lib -I t/lib -MANFANG -- maint/gen_sqlite_schema_files --schema-class DBICTest::Schema );
my $example_ddl_fn = 'examples/Schema/db/example.sql';
my $example_db_fn = 'examples/Schema/db/example.db';
# this allows the obscure but possible call case to behave correctly:
#
-# perl -Mt::lib::ANFANG -e 'do "./t/lib/ANFANG.pm" or die ( $@ || $! )'
+# perl -It/lib -MANFANG -e 'do "./t/lib/ANFANG.pm" or die ( $@ || $! )'
#
return 1 if $anfang_loaded;
local ( $!, $^E, $?, $@ );
- system( $perl, qw( -Mt::lib::ANFANG -e ), <<'EOS', $arg );
+ system( $perl, qw( -It/lib -MANFANG -e ), <<'EOS', $arg );
$0 = 'malloc_canary';
my $tail_character_of_reified_megastring = substr( ( join '', map chr, 0..255 ) x (4 * 1024 * $ARGV[0]), -1 );
EOS
# there is talk of possible perl compilations where -T is fatal or just
# doesn't work. We don't want to have the user deal with that.
-BEGIN { unless ($INC{'t/lib/DBICTest/WithTaint.pm'}) {
+BEGIN { unless ($INC{'DBICTest/WithTaint.pm'}) {
if ( $^O eq 'MSWin32' and $^X =~ /\x20/ ) {
print "1..0 # SKIP Running this test on Windows with spaces within the perl executable path (\$^X) is not possible due to https://rt.perl.org/Ticket/Display.html?id=123907\n";
exit 0;
}
- exec( $perl, qw( -I. -Mt::lib::DBICTest::WithTaint -T ), __FILE__ );
+ exec( $perl, qw( -It/lib -MDBICTest::WithTaint -T ), __FILE__ );
}}
# We need to specify 'lib' here as well because even if it was already in