1# Include this in any test using mysql_upgrade
2
3# Can't run test of external client with embedded server
4-- source include/not_embedded.inc
5#
6# Hack:
7#
8# If running with Valgrind ($VALGRIND_TEST <> 0) then the resource
9# consumption (CPU) for upgrading a large log table will be intense.
10# Therefore, truncate the log table in advance and issue a statement
11# that should be logged.
12#
13if ($VALGRIND_TEST)
14{
15  --disable_query_log
16  --disable_result_log
17  --disable_abort_on_error
18  TRUNCATE TABLE mysql.general_log;
19  SELECT 1;
20  --enable_abort_on_error
21  --enable_result_log
22  --enable_query_log
23}
24