From 9a33090514cb6e590f41bc12d528423373e36d2b Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Mon, 11 Mar 2013 10:24:16 -0600 Subject: [PATCH] Fix diff_warnings.t for MySQL 5.0. --- t/pt-upgrade/diff_warnings.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/t/pt-upgrade/diff_warnings.t b/t/pt-upgrade/diff_warnings.t index 90cc6586..cb5da71c 100644 --- a/t/pt-upgrade/diff_warnings.t +++ b/t/pt-upgrade/diff_warnings.t @@ -46,7 +46,9 @@ my $w2 = $event_exec->get_warnings(dbh => $dbh2); my $error_1264 = { code => '1264', level => 'Warning', - message => "Out of range value for column 't' at row 1", + message => ($sandbox_version eq '5.0' + ? "Out of range value adjusted for column 't' at row 1" + : "Out of range value for column 't' at row 1"), }; is_deeply( @@ -113,5 +115,6 @@ is_deeply( # Done. # ############################################################################# $sb->wipe_clean($dbh1); +diag(`$trunk/sandbox/stop-sandbox 12348 >/dev/null`); ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox"); done_testing;