diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index f630bec4120..1105b0010b6 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -1560,6 +1560,11 @@ sub check_debug_support () { { # mtr_report("Binaries are not debug compiled"); $debug_compiled_binaries= 0; + + if ( $opt_debug ) + { + mtr_error("Can't use --debug, binaries does not support it"); + } return; } mtr_report("Binaries are debug compiled");