From 7f58eb4f79f3b856258b4e1d1203b6e7f27aa3de Mon Sep 17 00:00:00 2001 From: Sergey Vojtovich Date: Thu, 6 Jun 2013 12:01:09 +0400 Subject: [PATCH] MDEV-4568 - Port Percona response time distribution as audit plugin Test case fixes. --- .../query_response_time/query_response_time-stored.test | 9 +++++++++ .../query_response_time/query_response_time.test | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/plugin/query_response_time/mysql-test/query_response_time/query_response_time-stored.test b/plugin/query_response_time/mysql-test/query_response_time/query_response_time-stored.test index e5d15c750f1..e281bd352f1 100644 --- a/plugin/query_response_time/mysql-test/query_response_time/query_response_time-stored.test +++ b/plugin/query_response_time/mysql-test/query_response_time/query_response_time-stored.test @@ -1,5 +1,14 @@ --source include/have_debug.inc +# The file with expected results fits only to a run without +# ps-protocol/sp-protocol/cursor-protocol/view-protocol. +if (`SELECT $PS_PROTOCOL + $SP_PROTOCOL + $CURSOR_PROTOCOL + + $VIEW_PROTOCOL > 0`) +{ + --skip Test requires: ps-protocol/sp-protocol/cursor-protocol/view-protocol disabled +} + + CREATE TABLE t(a INT); delimiter ^; diff --git a/plugin/query_response_time/mysql-test/query_response_time/query_response_time.test b/plugin/query_response_time/mysql-test/query_response_time/query_response_time.test index ed8f60b4acf..5caec36fa96 100644 --- a/plugin/query_response_time/mysql-test/query_response_time/query_response_time.test +++ b/plugin/query_response_time/mysql-test/query_response_time/query_response_time.test @@ -1,5 +1,14 @@ --source include/have_debug.inc +# The file with expected results fits only to a run without +# ps-protocol/sp-protocol/cursor-protocol/view-protocol. +if (`SELECT $PS_PROTOCOL + $SP_PROTOCOL + $CURSOR_PROTOCOL + + $VIEW_PROTOCOL > 0`) +{ + --skip Test requires: ps-protocol/sp-protocol/cursor-protocol/view-protocol disabled +} + + --let base=1 --source query_response_time.inc --let base=2