mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
Fix some compiler warnings.
Fix bad merge causing error when specifying test case in non-default suite for mysql-test-run. Implement the ability to add extra flags and configure options when running BUILD/xxx scripts. Improve unclear help text in mysql-test-run BUILD/FINISH.sh: Implement the ability to add extra flags and configure options when running BUILD/xxx scripts. BUILD/SETUP.sh: Implement the ability to add extra flags and configure options when running BUILD/xxx scripts. extra/yassl/taocrypt/include/block.hpp: Fix some compiler warnings. mysql-test/lib/mtr_cases.pm: Fix bad merge causing error when specifying test case in non-default suite for mysql-test-run. Also remove some non-essential differences to mysql version to simplify future merges. mysql-test/mysql-test-run.pl: Improve help texts. plugin/fulltext/plugin_example.c: Fix some compiler warnings. vio/viosslfactories.c: Fix some compiler warnings.
This commit is contained in:
parent
d8e44ef589
commit
961821d7ae
7 changed files with 23 additions and 22 deletions
|
@ -1,6 +1,6 @@
|
|||
cflags="$c_warnings $extra_flags"
|
||||
cxxflags="$cxx_warnings $base_cxxflags $extra_flags"
|
||||
extra_configs="$extra_configs $local_infile_configs"
|
||||
cflags="$c_warnings $extra_flags $EXTRA_FLAGS $EXTRA_CFLAGS"
|
||||
cxxflags="$cxx_warnings $base_cxxflags $extra_flags $EXTRA_FLAGS $EXTRA_CXXFLAGS"
|
||||
extra_configs="$extra_configs $local_infile_configs $EXTRA_CONFIGS"
|
||||
configure="./configure $base_configs $extra_configs"
|
||||
|
||||
commands="\
|
||||
|
|
|
@ -34,6 +34,14 @@ parse_options()
|
|||
full_debug="=full";;
|
||||
--warning-mode=*)
|
||||
warning_mode=`get_key_value "$1"`;;
|
||||
--extra-flags=*)
|
||||
EXTRA_FLAGS=`get_key_value "$1"`;;
|
||||
--extra-cflags=*)
|
||||
EXTRA_CFLAGS=`get_key_value "$1"`;;
|
||||
--extra-cxxflags=*)
|
||||
EXTRA_CXXFLAGS=`get_key_value "$1"`;;
|
||||
--extra-configs=*)
|
||||
EXTRA_CONFIGS=`get_key_value "$1"`;;
|
||||
-c | --just-configure)
|
||||
just_configure=1;;
|
||||
-n | --just-print | --print)
|
||||
|
|
|
@ -167,7 +167,8 @@ public:
|
|||
void CleanNew(word32 newSize)
|
||||
{
|
||||
New(newSize);
|
||||
memset(buffer_, 0, sz_ * sizeof(T));
|
||||
if (sz_ > 0)
|
||||
memset(buffer_, 0, sz_ * sizeof(T));
|
||||
}
|
||||
|
||||
void New(word32 newSize)
|
||||
|
|
|
@ -101,7 +101,6 @@ sub init_pattern {
|
|||
|
||||
sub collect_test_cases ($$) {
|
||||
my $suites= shift; # Semicolon separated list of test suites
|
||||
my %found_suites;
|
||||
my $opt_cases= shift;
|
||||
my $cases= []; # Array of hash(one hash for each testcase)
|
||||
|
||||
|
@ -115,7 +114,6 @@ sub collect_test_cases ($$) {
|
|||
["ha_innodb_plugin.dll", "ha_innodb_plugin.so",
|
||||
"ha_innodb_plugin.sl"],
|
||||
NOT_REQUIRED);
|
||||
|
||||
$do_innodb_plugin= ($::mysql_version_id >= 50100 &&
|
||||
!(IS_WINDOWS && $::opt_embedded_server) &&
|
||||
$lib_innodb_plugin);
|
||||
|
@ -123,7 +121,6 @@ sub collect_test_cases ($$) {
|
|||
foreach my $suite (split(",", $suites))
|
||||
{
|
||||
push(@$cases, collect_one_suite($suite, $opt_cases));
|
||||
$found_suites{$suite}= 1;
|
||||
last if $some_test_found;
|
||||
}
|
||||
|
||||
|
@ -136,12 +133,6 @@ sub collect_test_cases ($$) {
|
|||
{
|
||||
my $found= 0;
|
||||
my ($sname, $tname, $extension)= split_testname($test_name_spec);
|
||||
if (defined($sname) && !defined($found_suites{$sname}))
|
||||
{
|
||||
$found_suites{$sname}= 1;
|
||||
push(@$cases, collect_one_suite($sname));
|
||||
}
|
||||
|
||||
foreach my $test ( @$cases )
|
||||
{
|
||||
# test->{name} is always in suite.name format
|
||||
|
@ -247,7 +238,7 @@ sub split_testname {
|
|||
}
|
||||
|
||||
|
||||
sub collect_one_suite($)
|
||||
sub collect_one_suite
|
||||
{
|
||||
my $suite= shift; # Test suite name
|
||||
my $opt_cases= shift;
|
||||
|
@ -767,7 +758,6 @@ sub process_opts_file {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
# Collect information about a single test case
|
||||
|
|
|
@ -5683,12 +5683,15 @@ Misc options
|
|||
servers to exit before finishing the process
|
||||
fast Run as fast as possible, dont't wait for servers
|
||||
to shutdown etc.
|
||||
parallel=N Run tests in N parallel threads (default=1)
|
||||
parallel=N Run tests in N parallel threads (default 1)
|
||||
Use parallel=auto for auto-setting of N
|
||||
repeat=N Run each test N number of times
|
||||
retry=N Retry tests that fail N times, limit number of failures
|
||||
to $opt_retry_failure
|
||||
retry-failure=N Limit number of retries for a failed test
|
||||
retry=N Retry tests that fail up to N times (default $opt_retry).
|
||||
Retries are also limited by the maximum number of
|
||||
failures before stopping, set with the --retry-failure
|
||||
option
|
||||
retry-failure=N When using the --retry option to retry failed tests,
|
||||
stop when N failures have occured (default $opt_retry_failure)
|
||||
reorder Reorder tests to get fewer server restarts
|
||||
help Get this help text
|
||||
|
||||
|
|
|
@ -145,7 +145,7 @@ static int simple_parser_deinit(MYSQL_FTPARSER_PARAM *param
|
|||
the list of search terms when parsing a search string.
|
||||
*/
|
||||
|
||||
static void add_word(MYSQL_FTPARSER_PARAM *param, char *word, size_t len)
|
||||
static void add_word(MYSQL_FTPARSER_PARAM *param, const unsigned char *word, size_t len)
|
||||
{
|
||||
MYSQL_FTPARSER_BOOLEAN_INFO bool_info=
|
||||
{ FT_TOKEN_WORD, 0, 0, 0, 0, ' ', 0 };
|
||||
|
@ -169,7 +169,7 @@ static void add_word(MYSQL_FTPARSER_PARAM *param, char *word, size_t len)
|
|||
|
||||
static int simple_parser_parse(MYSQL_FTPARSER_PARAM *param)
|
||||
{
|
||||
char *end, *start, *docend= param->doc + param->length;
|
||||
const unsigned char *end, *start, *docend= param->doc + param->length;
|
||||
|
||||
number_of_calls++;
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
static my_bool ssl_algorithms_added = FALSE;
|
||||
static my_bool ssl_error_strings_loaded= FALSE;
|
||||
static int verify_depth = 0;
|
||||
|
||||
static unsigned char dh512_p[]=
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue