mariadb/mysql-test/include/mysql_upgrade_preparation.inc
2021-03-18 08:02:48 +01:00

26 lines
723 B
PHP

# Include this in any test using mysql_upgrade
# Can't run test of external client with embedded server
-- source include/not_embedded.inc
# diff in the output, if perfschema is not compiled in
# (sys schema views are missing)
-- source include/have_perfschema.inc
#
# Hack:
#
# If running with Valgrind ($VALGRIND_TEST <> 0) then the resource
# consumption (CPU) for upgrading a large log table will be intense.
# Therefore, truncate the log table in advance and issue a statement
# that should be logged.
#
if ($VALGRIND_TEST)
{
--disable_query_log
--disable_result_log
--disable_abort_on_error
TRUNCATE TABLE mysql.general_log;
SELECT 1;
--enable_abort_on_error
--enable_result_log
--enable_query_log
}