mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	This is a followup patch for the bug enabling the test i_binlog.binlog_mysqlbinlog_file_write.test this was disabled in mysql trunk and mysql 5.5 as in the release build mysqlbinlog was not debug compiled whereas the mysqld was. Since have_debug.inc script checks only for mysqld to be debug compiled, the test was not being skipped on release builds. We resolve this problem by creating a new inc file mysqlbinlog_have_debug.inc which checks exclusively for mysqlbinlog to be debug compiled. if not it skips the test. mysql-test/include/mysqlbinlog_have_debug.inc: new inc file to check if mysqlbinlog is debug compiled.
		
			
				
	
	
		
			35 lines
		
	
	
		
			989 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			989 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
#############################################
 | 
						|
# checks if mysqlbinlog is debug compiled
 | 
						|
# this "cannot" be done simply by using 
 | 
						|
# have_debug.inc 
 | 
						|
#############################################
 | 
						|
 | 
						|
--disable_query_log
 | 
						|
--let $temp_out_help_file=$MYSQL_TMP_DIR/mysqlbinlog_help.tmp
 | 
						|
--exec $MYSQL_BINLOG --help>$temp_out_help_file
 | 
						|
let log_tmp=$temp_out_help_file;
 | 
						|
--let $temp_inc=$MYSQL_TMP_DIR/temp.inc
 | 
						|
let inc_tmp=$temp_inc;
 | 
						|
 | 
						|
--perl 
 | 
						|
use strict;
 | 
						|
my $tmp_file= $ENV{'log_tmp'} or die "log_tmp not set";
 | 
						|
open(FILE, "$tmp_file") or die("Unable to open $tmp_file: $!\n");
 | 
						|
my $count = () = grep(/Output debug log/g,<FILE>);
 | 
						|
close FILE;
 | 
						|
 | 
						|
my $temp_inc= $ENV{'inc_tmp'} or die "temp_inc not set";
 | 
						|
open(FILE_INC,">", "$temp_inc") or die("can't open file \"$temp_inc\": $!");
 | 
						|
print FILE_INC '--let $is_debug= '.$count;
 | 
						|
close FILE_INC;
 | 
						|
EOF
 | 
						|
--source $temp_inc
 | 
						|
 | 
						|
if (!$is_debug)
 | 
						|
{
 | 
						|
  --skip mysqlbinlog needs to be debug compiled
 | 
						|
}
 | 
						|
--remove_file $temp_out_help_file
 | 
						|
--remove_file $temp_inc
 | 
						|
--enable_query_log
 |