mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
remove few .require files and one duplicate have_*inc file.
move variable tests from main to sys-vars
This commit is contained in:
91
mysql-test/suite/sys_vars/r/debug_dbug_func.result
Normal file
91
mysql-test/suite/sys_vars/r/debug_dbug_func.result
Normal file
@ -0,0 +1,91 @@
|
||||
SET @old_debug = @@GLOBAL.debug;
|
||||
set debug_dbug= 'T';
|
||||
select @@debug;
|
||||
@@debug
|
||||
T
|
||||
set debug_dbug= '+P';
|
||||
select @@debug;
|
||||
@@debug
|
||||
P:T
|
||||
set debug_dbug= '-P';
|
||||
select @@debug;
|
||||
@@debug
|
||||
T
|
||||
SELECT @@session.debug, @@global.debug;
|
||||
@@session.debug @@global.debug
|
||||
T
|
||||
SET SESSION debug_dbug= '';
|
||||
SELECT @@session.debug, @@global.debug;
|
||||
@@session.debug @@global.debug
|
||||
|
||||
#
|
||||
# Bug #52629: memory leak from sys_var_thd_dbug in
|
||||
# binlog.binlog_write_error
|
||||
#
|
||||
SET GLOBAL debug_dbug='d,injecting_fault_writing';
|
||||
SELECT @@global.debug;
|
||||
@@global.debug
|
||||
d,injecting_fault_writing
|
||||
SET GLOBAL debug_dbug='';
|
||||
SELECT @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
SET GLOBAL debug_dbug=@old_debug;
|
||||
#
|
||||
# Bug #56709: Memory leaks at running the 5.1 test suite
|
||||
#
|
||||
SET @old_local_debug = @@debug;
|
||||
SET @@debug_dbug='d,foo';
|
||||
SELECT @@debug;
|
||||
@@debug
|
||||
d,foo
|
||||
SET @@debug_dbug='';
|
||||
SELECT @@debug;
|
||||
@@debug
|
||||
|
||||
SET @@debug_dbug= @old_local_debug;
|
||||
End of 5.1 tests
|
||||
#
|
||||
# Bug#46165 server crash in dbug
|
||||
#
|
||||
SET @old_globaldebug = @@global.debug;
|
||||
SET @old_sessiondebug= @@session.debug;
|
||||
# Test 1 - Bug test case, single connection
|
||||
SET GLOBAL debug_dbug= '+O,../../log/bug46165.1.trace';
|
||||
SET SESSION debug_dbug= '-d:-t:-i';
|
||||
SET GLOBAL debug_dbug= '';
|
||||
SET SESSION debug_dbug= '';
|
||||
# Test 2 - Bug test case, two connections
|
||||
# Connection default
|
||||
SET GLOBAL debug_dbug= '+O,../../log/bug46165.2.trace';
|
||||
SET SESSION debug_dbug= '-d:-t:-i';
|
||||
# Connection con1
|
||||
SET GLOBAL debug_dbug= '';
|
||||
# Connection default
|
||||
SET SESSION debug_dbug= '';
|
||||
# Connection con1
|
||||
# Connection default
|
||||
SET GLOBAL debug_dbug= '';
|
||||
# Test 3 - Active session trace file on disconnect
|
||||
# Connection con1
|
||||
SET GLOBAL debug_dbug= '+O,../../log/bug46165.3.trace';
|
||||
SET SESSION debug_dbug= '-d:-t:-i';
|
||||
SET GLOBAL debug_dbug= '';
|
||||
# Test 4 - Active session trace file on two connections
|
||||
# Connection default
|
||||
SET GLOBAL debug_dbug= '+O,../../log/bug46165.4.trace';
|
||||
SET SESSION debug_dbug= '-d:-t:-i';
|
||||
# Connection con1
|
||||
SET SESSION debug_dbug= '-d:-t:-i';
|
||||
SET GLOBAL debug_dbug= '';
|
||||
SET SESSION debug_dbug= '';
|
||||
# Connection default
|
||||
SET SESSION debug_dbug= '';
|
||||
# Connection con1
|
||||
# Connection default
|
||||
# Test 5 - Different trace files
|
||||
SET SESSION debug_dbug= '+O,../../log/bug46165.5.trace';
|
||||
SET SESSION debug_dbug= '+O,../../log/bug46165.6.trace';
|
||||
SET SESSION debug_dbug= '-O';
|
||||
SET GLOBAL debug_dbug= @old_globaldebug;
|
||||
SET SESSION debug_dbug= @old_sessiondebug;
|
Reference in New Issue
Block a user