Fix broken tests

This commit is contained in:
Brian Fraser
2013-03-06 14:21:29 -03:00
parent 6096dd05b2
commit 2034823b95
3 changed files with 1 additions and 61 deletions

View File

@@ -58,7 +58,7 @@ like $output,
# We removed --statistics, but they should still print out if we use PTDEBUG.
$output = qx{PTDEBUG=1 $cmd --no-report ${sample}slow002.txt 2>&1};
my $stats = slurp_file("t/pt-query-digest/samples/stats-slow002.txt");
my $stats = load_file("t/pt-query-digest/samples/stats-slow002.txt");
like(
$output,

View File

@@ -1,52 +0,0 @@
# Query 1: 0 QPS, 0x concurrency, ID 0xAA353644DE4C4CB4 at byte 435 ______
# This item is included in the report because it matches --limit.
# Scores: V/M = 0.02
# Attribute pct total min max avg 95% stddev median
# ============ === ======= ======= ======= ======= ======= ======= =======
# Count 66 2
# Exec time 95 19ms 2us 19ms 9ms 19ms 13ms 9ms
# Lock time 100 9ms 0 9ms 5ms 9ms 7ms 5ms
# Rows sent 100 14 5 9 7 9 2.83 7
# Rows examine 62 5 2 3 2.50 3 0.71 2.50
# Query size 79 54 27 27 27 27 0 27
# String:
# Databases db1 (1/50%), db2 (1/50%)
# Hosts
# Users meow
# Query_time distribution
# 1us ################################################################
# 10us
# 100us
# 1ms
# 10ms ################################################################
# 100ms
# 1s
# 10s+
administrator command: Quit\G
# Query 2: 0 QPS, 0x concurrency, ID 0xCC47B42511EA22DD at byte 221 ______
# This item is included in the report because it matches --limit.
# Scores: V/M = 0.00
# Attribute pct total min max avg 95% stddev median
# ============ === ======= ======= ======= ======= ======= ======= =======
# Count 33 1
# Exec time 4 899us 899us 899us 899us 899us 0 899us
# Lock time 0 0 0 0 0 0 0 0
# Rows sent 0 0 0 0 0 0 0 0
# Rows examine 37 3 3 3 3 3 0 3
# Query size 20 14 14 14 14 14 0 14
# String:
# Databases db
# Hosts
# Users meow
# Query_time distribution
# 1us
# 10us
# 100us ################################################################
# 1ms
# 10ms
# 100ms
# 1s
# 10s+
SET NAMES utf8\G

View File

@@ -204,14 +204,6 @@ ok(
'--zero-admin works'
);
ok(
no_diff(
sub { pt_query_digest::main(@args, $sample.'slow019.txt', qw(--nozero-admin)) },
"t/pt-query-digest/samples/slow019_report_noza.txt"
),
'--nozero-admin works'
);
# This was fixed at some point by checking the fingerprint to see if the
# query needed to be converted to a SELECT.
ok(