Fixed timing issue in test suite

This commit is contained in:
Michael Widenius 2010-08-06 10:46:51 +03:00
parent 27d27deeeb
commit 9183144922
3 changed files with 15 additions and 18 deletions

View file

@ -1 +1 @@
--slow-query-log-file=percona_slow_query_log-long_query_time.log --long-query-time=2
--slow-query-log-file=percona_slow_query_log-long_query_time.log --long-query-time=3

View file

@ -1,22 +1,21 @@
SELECT sleep(1);
sleep(1)
0
SELECT sleep(3);
sleep(3)
SELECT sleep(6);
sleep(6)
0
SELECT sleep(5);
sleep(5)
SELECT sleep(10);
sleep(10)
0
set long_query_time=4;
set long_query_time=8;
SELECT sleep(1);
sleep(1)
0
SELECT sleep(3);
sleep(3)
SELECT sleep(6);
sleep(6)
0
SELECT sleep(5);
sleep(5)
SELECT sleep(12);
sleep(12)
0
set long_query_time=2;
cat MYSQLD_DATADIR/percona_slow_query_log-long_query_time.log | grep -c Query_time
3

View file

@ -1,16 +1,14 @@
source include/have_innodb.inc;
SELECT sleep(1);
SELECT sleep(3);
SELECT sleep(5);
SELECT sleep(6);
SELECT sleep(10);
set long_query_time=4;
set long_query_time=8;
SELECT sleep(1);
SELECT sleep(3);
SELECT sleep(5);
set long_query_time=2;
SELECT sleep(6);
SELECT sleep(12);
let $MYSQLD_DATADIR= `select @@datadir`;
let $cmd = cat $MYSQLD_DATADIR/percona_slow_query_log-long_query_time.log | grep -c Query_time;