source include/have_xtradb.inc;

SET GLOBAL SLOW_QUERY_LOG=ON;

SELECT sleep(2);

set global slow_query_log_timestamp_precision='microsecond';

SELECT sleep(2);

set global slow_query_log_timestamp_precision='second';

SET GLOBAL SLOW_QUERY_LOG=OFF;

FLUSH LOGS;
--let grep_file = $MYSQLTEST_VARDIR/mysqld.1/data/percona_slow_query_log-microseconds_in_slow_query_log.log
--let grep_pattern = # Time: [0-9]+[ ]+[0-9]+:[0-9]+:[0-9]+.[0-9]+
--source grep.inc

--let grep_file = $MYSQLTEST_VARDIR/mysqld.1/data/percona_slow_query_log-microseconds_in_slow_query_log.log 
--let grep_pattern =  # Time: [0-9]+[ ]+[0-9]+:[0-9]+:[0-9]+
--source grep.inc

