X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fstorage%2Fdebug.t;h=68687957b9c1d13462e792e29dad13e21da0468e;hb=0bec44d5d7af72fd110ab6bff067f865f34db5d0;hp=e023fff9894c41dbfbae6a51487b32b5d25697a0;hpb=8494142cea239b72298004f762cf500f71650533;p=dbsrgits%2FDBIx-Class.git diff --git a/t/storage/debug.t b/t/storage/debug.t index e023fff..6868795 100644 --- a/t/storage/debug.t +++ b/t/storage/debug.t @@ -2,6 +2,8 @@ use strict; use warnings; no warnings 'once'; +BEGIN { $ENV{DBICTEST_VIA_REPLICATED} = 0 } + use Test::More; use Test::Exception; use Try::Tiny; @@ -69,11 +71,12 @@ my $exception = try { open(STDERR, '>&STDERRCOPY'); }; -like $exception, qr/ +ok $exception =~ / \QDuplication of STDERR for debug output failed (perhaps your STDERR is closed?)\E .+ \Qat @{[__FILE__]} line $exception_line_number\E$ -/xms; +/xms + or diag "Unexpected exception text:\n\n$exception\n"; my @warnings; $exception = try {