mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-04 04:46:15 +01:00 
			
		
		
		
	fix failing main.mysql-interactive * increase socat EOF timeout from 0.5s to 10s * add an explicit exit to not wait 10s (or even 0.5s - the test now finishes in 0.15s) * enable it for libedit
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			587 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			587 B
		
	
	
	
		
			Text
		
	
	
	
	
	
--echo #
 | 
						|
--echo # regression introduced by MDEV-14448
 | 
						|
--echo #
 | 
						|
source include/not_embedded.inc;
 | 
						|
source include/not_windows.inc;
 | 
						|
# this would need an instrumented ncurses library
 | 
						|
source include/not_msan.inc;
 | 
						|
 | 
						|
write_file $MYSQL_TMP_DIR/mysql_in;
 | 
						|
delimiter $
 | 
						|
select 1;
 | 
						|
$
 | 
						|
exit
 | 
						|
EOF
 | 
						|
let TERM=dumb;
 | 
						|
replace_regex /id is \d+/id is X/ /Server version: .*/Server version: Y/ / \(\d+\.\d+ sec\)//;
 | 
						|
error 0,127;
 | 
						|
exec socat -t10 EXEC:"$MYSQL",pty STDIO < $MYSQL_TMP_DIR/mysql_in;
 | 
						|
if ($sys_errno == 127)
 | 
						|
{
 | 
						|
  remove_file $MYSQL_TMP_DIR/mysql_in;
 | 
						|
  skip no socat;
 | 
						|
}
 | 
						|
remove_file $MYSQL_TMP_DIR/mysql_in;
 |