Current Path : /home/usr.opt/mysql57/mysql-test/suite/sys_vars/t/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/sys_vars/t/log_error_func2.test |
# Test for BUG#51215 "log-error partially works with version 5.5" # when --log-error is used without argument # check displayed value. We can check only the suffix, because # the rest depends on paths, symbolic links, --vardir, etc... --disable_warnings select (@err_log:=variable_value)*0 from information_schema.global_variables where variable_name="log_error"; --enable_warnings select instr(@err_log, ".err")>0; # Check file's existence. The displayed value may be relative or not. let $err_log=`select @err_log`; let $err_log_relative=`select instr(@err_log, ".")=1`; if ($err_log_relative) { let $MYSQLD_DATADIR= `SELECT @@datadir`; file_exists $MYSQLD_DATADIR/$err_log; } if (!$err_log_relative) { file_exists $err_log; }