4
die "The PERCONA_TOOLKIT_BRANCH environment variable is not set.\n"
5
unless $ENV{PERCONA_TOOLKIT_BRANCH} && -d $ENV{PERCONA_TOOLKIT_BRANCH};
6
unshift @INC, "$ENV{PERCONA_TOOLKIT_BRANCH}/lib";
10
use warnings FATAL => 'all';
11
use English qw(-no_match_vars);
12
use Test::More tests => 1;
16
require "$trunk/bin/pt-deadlock-logger";
18
# #############################################################################
19
# https://bugs.launchpad.net/percona-toolkit/+bug/903443
20
# pt-deadlock-logger crashes on MySQL 5.5
21
# #############################################################################
23
my $innodb_status_sample = load_file("t/pt-deadlock-logger/samples/bug_903443.txt");
26
pt_deadlock_logger::parse_deadlocks($innodb_status_sample),
30
hostname => 'localhost',
36
query => 'update a set movie_id=96 where id =2',
40
ts => '2011-12-12T22:52:42',
49
hostname => 'localhost',
55
query => 'update a set movie_id=98 where id =4',
59
ts => '2011-12-12T22:52:42',
67
"Bug 903443: pt-deadlock-logger parses the thread id incorrectly for MySQL 5.5",
70
# #############################################################################
72
# #############################################################################