X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fbackcompat%2F0.04006%2F22dump.t;h=fa1a2da724f637b7f990b3416717279f607a8fe5;hb=f8c2ca5eac1d4782c1d5be369c9bd0dcf680cb9d;hp=fb609d21559f3e71ea277828276e2f66ae45b586;hpb=8b7749d600f77eea279318a0df10a8aaa9fab66b;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/t/backcompat/0.04006/22dump.t b/t/backcompat/0.04006/22dump.t index fb609d2..fa1a2da 100644 --- a/t/backcompat/0.04006/22dump.t +++ b/t/backcompat/0.04006/22dump.t @@ -1,13 +1,15 @@ +use DBIx::Class::Schema::Loader::Optional::Dependencies + -skip_all_without => 'test_backcompat'; + use strict; +use warnings; use Test::More; use lib qw(t/backcompat/0.04006/lib); use File::Path; use make_dbictest_db; +use dbixcsl_test_dir qw/$tdir/; -plan skip_all => 'set SCHEMA_LOADER_TESTS_BACKCOMPAT to enable these tests' - unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT}; - -my $dump_path = './t/_dump'; +my $dump_path = "$tdir/dump"; local $SIG{__WARN__} = sub { warn @_ unless $_[0] =~ @@ -69,4 +71,4 @@ eval { DBICTest::Schema::2->connect($make_dbictest_db::dsn) }; ok(!$@, 'no death with dump_directory set (overwrite2)') or diag "Dump failed: $@"; -END { rmtree($dump_path, 1, 1); } +END { rmtree($dump_path, 1, 1) if $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT}; }