use warnings;
no warnings 'once';
+BEGIN { $ENV{DBICTEST_VIA_REPLICATED} = 0 }
+
use Test::More;
use Test::Exception;
use Try::Tiny;
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 {