Fix and test parser_error_packet() for non-SQL errors.

This commit is contained in:
Daniel Nichter
2013-01-25 11:24:35 -07:00
parent 20ace5a9e9
commit 15b1c43874
7 changed files with 273 additions and 12 deletions

View File

@@ -9,7 +9,7 @@ BEGIN {
use strict;
use warnings FATAL => 'all';
use English qw(-no_match_vars);
use Test::More tests => 6;
use Test::More;
use PerconaTest;
@@ -76,7 +76,21 @@ ok(
'Analysis for tcpdump017 with microsecond timestamps (issue 398)'
);
# #############################################################################
# Bug 1103045: pt-query-digest fails to parse non-SQL errors
# https://bugs.launchpad.net/percona-toolkit/+bug/1103045
# #############################################################################
ok(
no_diff(
sub { pt_query_digest::main(@args, $sample.'tcpdump043.txt',
'--report-format', 'header,query_report,profile',
qw(--watch-server 127.0.0.1:12345)) },
"t/pt-query-digest/samples/tcpdump043_report.txt"
),
'Analysis for tcpdump043 with connection error (bug 1103045)'
);
# #############################################################################
# Done.
# #############################################################################
exit;
done_testing;