diff options
Diffstat (limited to 'mysql-test/suite/binlog/t/binlog_stm_unsafe_warning.test')
-rw-r--r-- | mysql-test/suite/binlog/t/binlog_stm_unsafe_warning.test | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mysql-test/suite/binlog/t/binlog_stm_unsafe_warning.test b/mysql-test/suite/binlog/t/binlog_stm_unsafe_warning.test index 022341ae833..78a16945791 100644 --- a/mysql-test/suite/binlog/t/binlog_stm_unsafe_warning.test +++ b/mysql-test/suite/binlog/t/binlog_stm_unsafe_warning.test @@ -122,6 +122,7 @@ if(!$log_error_) # does not know the location of its .err log, use default location let $log_error_ = $MYSQLTEST_VARDIR/log/mysqld.1.err; } + # Assign env variable LOG_ERROR let LOG_ERROR=$log_error_; @@ -130,8 +131,9 @@ let LOG_ERROR=$log_error_; perl; use strict; + use Cwd; my $log_error= $ENV{'LOG_ERROR'} or die "LOG_ERROR not set"; - open(FILE, "$log_error") or die("Unable to open $log_error: $!\n"); + open(FILE, "$log_error") or die("Unable to open '$log_error' from directory " . cwd() . "\n"); my $count = () = grep(/Bug#46265/g,<FILE>); print "Occurrences: $count\n"; close(FILE); |