summaryrefslogtreecommitdiff
path: root/mysql-test/r/variables_debug.result
diff options
context:
space:
mode:
authorJon Olav Hauglid <jon.hauglid@oracle.com>2010-09-29 10:07:56 +0200
committerJon Olav Hauglid <jon.hauglid@oracle.com>2010-09-29 10:07:56 +0200
commitb72e7f05ffe5e8360a9b91c83db045c1e4618d35 (patch)
tree73d91e327180559125cd9a05024f81eef9735a1b /mysql-test/r/variables_debug.result
parent7f80cffa52d20aad308ccf2b2791dde477d5ec22 (diff)
downloadmariadb-git-b72e7f05ffe5e8360a9b91c83db045c1e4618d35.tar.gz
Followup to Bug#46165 server crash in dbug
This patch moves the regression test from variables.test to variables_debug.test as the debug system variable is not available on release builds.
Diffstat (limited to 'mysql-test/r/variables_debug.result')
-rw-r--r--mysql-test/r/variables_debug.result44
1 files changed, 44 insertions, 0 deletions
diff --git a/mysql-test/r/variables_debug.result b/mysql-test/r/variables_debug.result
index a02d285b15b..8abdbdaed12 100644
--- a/mysql-test/r/variables_debug.result
+++ b/mysql-test/r/variables_debug.result
@@ -32,3 +32,47 @@ SELECT @@global.debug;
SET GLOBAL debug=@old_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= '+O,../../log/bug46165.1.trace';
+SET SESSION debug= '-d:-t:-i';
+SET GLOBAL debug= '';
+SET SESSION debug= '';
+# Test 2 - Bug test case, two connections
+# Connection default
+SET GLOBAL debug= '+O,../../log/bug46165.2.trace';
+SET SESSION debug= '-d:-t:-i';
+# Connection con1
+SET GLOBAL debug= '';
+# Connection default
+SET SESSION debug= '';
+# Connection con1
+# Connection default
+SET GLOBAL debug= '';
+# Test 3 - Active session trace file on disconnect
+# Connection con1
+SET GLOBAL debug= '+O,../../log/bug46165.3.trace';
+SET SESSION debug= '-d:-t:-i';
+SET GLOBAL debug= '';
+# Test 4 - Active session trace file on two connections
+# Connection default
+SET GLOBAL debug= '+O,../../log/bug46165.4.trace';
+SET SESSION debug= '-d:-t:-i';
+# Connection con1
+SET SESSION debug= '-d:-t:-i';
+SET GLOBAL debug= '';
+SET SESSION debug= '';
+# Connection default
+SET SESSION debug= '';
+# Connection con1
+# Connection default
+# Test 5 - Different trace files
+SET SESSION debug= '+O,../../log/bug46165.5.trace';
+SET SESSION debug= '+O,../../log/bug46165.6.trace';
+SET SESSION debug= '-O';
+SET GLOBAL debug= @old_globaldebug;
+SET SESSION debug= @old_sessiondebug;