From a552a26940fa30ac808b2548c7629662b2464222 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 20 Mar 2007 11:21:27 +0100 Subject: Bug#27070 server logs are created unrequested and in wrong directory - Avoid defaault log file names looking like .pid.slow.log by using the FN_REPLACE_EXT flag to 'fn_format' - Remove the default log files generated by log_state.test before test completes mysql-test/t/log_state.test: Tess sets location of log files to default location ie. they will be created in var/run form which the mysqld was started. Remove the files when test are completed sql/log.cc: Replace the extension formatting the default log file name from "pidfile_name" which already contains an extension --- mysql-test/t/log_state.test | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mysql-test/t/log_state.test') diff --git a/mysql-test/t/log_state.test b/mysql-test/t/log_state.test index a5e00cb0387..e772089ce7a 100644 --- a/mysql-test/t/log_state.test +++ b/mysql-test/t/log_state.test @@ -132,3 +132,8 @@ select * from mysql.general_log; # Cleanup (must be done last to avoid delayed 'Quit' message in general log) # disconnect con1; + +# Remove the log files that was created in the "default location" +# i.e var/run +--remove_file $MYSQLTEST_VARDIR/run/master.log +--remove_file $MYSQLTEST_VARDIR/run/master-slow.log -- cgit v1.2.1