From: Peter Rabbitson Date: Tue, 3 Nov 2015 08:53:56 +0000 (+0100) Subject: Fix test failure on 5.8.x with DBIC_TRACE=1 (introduced by 68b8ba54) X-Git-Tag: v0.082821~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=88a76b5478a8b08e379c70c3d9ea57a7b55d3bcf;p=dbsrgits%2FDBIx-Class.git Fix test failure on 5.8.x with DBIC_TRACE=1 (introduced by 68b8ba54) The CI run did not smoke this particular combination TLDR: like ... qr/.../m does not work on 5.8.x due to P5#3038 --- diff --git a/t/storage/debug.t b/t/storage/debug.t index e023fff..0aba07e 100644 --- a/t/storage/debug.t +++ b/t/storage/debug.t @@ -69,11 +69,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 {