From: Peter Rabbitson Date: Fri, 13 Dec 2013 19:58:33 +0000 (+0100) Subject: Remove 37b5ab51 test warnings on older perls X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=879ff8cb288376a987469a4d9efb2042da7493b1;p=dbsrgits%2FDBIx-Class-Historic.git Remove 37b5ab51 test warnings on older perls --- diff --git a/maint/travis-ci_scripts/40_script.bash b/maint/travis-ci_scripts/40_script.bash index 189eae3..8cb9048 100755 --- a/maint/travis-ci_scripts/40_script.bash +++ b/maint/travis-ci_scripts/40_script.bash @@ -38,6 +38,7 @@ if [[ -z "$DBICTRACE" ]] && [[ -z "$POISON_ENV" ]] && [[ -s "$TEST_STDERR_LOG" ] echo "=============================================================" echo "End of test run STDERR output ($STDERR_LOG_SIZE lines)" echo + echo )$POSTMORTEM" fi diff --git a/t/storage/base.t b/t/storage/base.t index efc5938..df3641e 100644 --- a/t/storage/base.t +++ b/t/storage/base.t @@ -152,7 +152,7 @@ SKIP: for my $env_dsn (undef, (DBICTest->_database)[0] ) { skip 'Subtest relies on being connected to SQLite', 1 if $env_dsn and $env_dsn !~ /\:SQLite\:/; - local $ENV{DBI_DSN} = $env_dsn; + local $ENV{DBI_DSN} = $env_dsn || ''; my $s = DBICTest::Schema->connect(); is_deeply ( @@ -164,7 +164,7 @@ SKIP: for my $env_dsn (undef, (DBICTest->_database)[0] ) { my $sm = $s->storage->sql_maker; - ok (! $s->storage->connected, 'Storage does not appear connected (SQLite determined by DSN-only analysis)'); + ok (! $s->storage->connected, 'Storage does not appear connected after SQLMaker instance is taken'); if ($env_dsn) { isa_ok($sm, 'DBIx::Class::SQLMaker');