Committed by Greg Sabino Mullane <[email protected]>
Fix broken test: suck in all warnings into a single scalar,
not just the latest one.
---
t/02attribs.t | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/t/02attribs.t b/t/02attribs.t
index ab1c7d3..7d24b1c 100644
--- a/t/02attribs.t
+++ b/t/02attribs.t
@@ -251,12 +251,11 @@ is ($value, 1, $t);
{
-local $SIG{__WARN__} = sub { $warning = shift; };
+local $SIG{__WARN__} = sub { $warning .= shift; };
$dbh->do(q{SET client_min_messages = 'DEBUG1'});
$t='DB handle attribute "PrintWarn" works when on';
$warning = q{};
-## FIXME: Fails on recent Postgres because the final message is a LOG
eval {
$dbh->do('CREATE TEMP TABLE dbd_pg_test_temp(id INT PRIMARY KEY)');
};
--
1.8.4