1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

MDEV-103: 'debug' is disabled in this build warnings causes tests to fail

The root cause is that after recent fixes around --debug variable (lp:909051)
the variable is now available in both release and debug builds, such that MTR
cannot tell a debug compiled server from optimized one.

To fix, assign a special default value 'disabled' for 'debug' variable in optimized build
and fix MTR to check for this special value to recognize optimized build.
This commit is contained in:
Vladislav Vaintroub
2012-01-20 01:57:34 +01:00
parent 4502f3b93f
commit 139bf5ce4c
2 changed files with 4 additions and 3 deletions

View File

@@ -2826,8 +2826,9 @@ sub check_ipv6_support {
sub check_debug_support ($) {
my $mysqld_variables= shift;
if ( ! $mysqld_variables->{'debug'} )
my $debug_var= $mysqld_variables->{'debug'};
if ( !$debug_var || $debug_var eq "disabled")
{
#mtr_report(" - binaries are not debug compiled");
$debug_compiled_binaries= 0;