From: Peter Rabbitson Date: Fri, 20 Apr 2012 07:41:28 +0000 (+0200) Subject: Fix test failure on MSWin32 X-Git-Tag: v0.08197~24 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a4fc1239dd52f5c1b2edb4004ba8562cfac8700d;p=dbsrgits%2FDBIx-Class.git Fix test failure on MSWin32 --- diff --git a/lib/DBIx/Class/Optional/Dependencies.pm b/lib/DBIx/Class/Optional/Dependencies.pm index afd41f5..b8708b6 100644 --- a/lib/DBIx/Class/Optional/Dependencies.pm +++ b/lib/DBIx/Class/Optional/Dependencies.pm @@ -253,6 +253,7 @@ my $reqs = { rdbms_pg => { req => { + # when changing this list make sure to adjust xt/optional_deps.t %$rdbms_pg, }, pod => { @@ -427,6 +428,7 @@ my $reqs = { req => { $ENV{DBICTEST_PG_DSN} ? ( + # when changing this list make sure to adjust xt/optional_deps.t %$rdbms_pg, ($^O ne 'MSWin32' ? ('Sys::SigAction' => '0') : ()), 'DBD::Pg' => '2.009002', diff --git a/xt/optional_deps.t b/xt/optional_deps.t index 1b8e6f9..0ae8023 100644 --- a/xt/optional_deps.t +++ b/xt/optional_deps.t @@ -119,7 +119,7 @@ is_deeply( is_deeply( DBIx::Class::Optional::Dependencies->req_list_for('test_rdbms_pg'), { - 'Sys::SigAction' => '0', + $^O ne 'MSWin32' ? ('Sys::SigAction' => '0') : (), 'DBD::Pg' => '2.009002', }, 'optional dependencies for testing Postgres with ENV var ok');