Commit 7002291b authored by Sergei Golubchik's avatar Sergei Golubchik

Merge branch '10.0' into 10.1

parents d79fd5ba 56394a78
...@@ -2670,10 +2670,11 @@ int main(int argc, char** argv) ...@@ -2670,10 +2670,11 @@ int main(int argc, char** argv)
if (!argc || opt_version) if (!argc || opt_version)
{ {
if (!argc)
usage();
if (!opt_version) if (!opt_version)
{
usage();
retval= ERROR_STOP; retval= ERROR_STOP;
}
goto err; goto err;
} }
......
...@@ -2,8 +2,3 @@ ...@@ -2,8 +2,3 @@
# suite.pm will make sure that all tests including this file # suite.pm will make sure that all tests including this file
# will be skipped unless this is a debug build. # will be skipped unless this is a debug build.
# #
# The test below is redundant
if (`select version() not like '%debug%'`) {
--skip Needs a debug build
}
# #
# Check if server has support for loading plugins # suite.pm will make sure that all tests including this file
# will be skipped unless dynamic ha_example plugin is available
# #
if (`SELECT @@have_dynamic_loading != 'YES'`) {
--skip Example plugin requires dynamic loading
}
#
# Check if the variable EXAMPLE_PLUGIN is set
#
if (!$HA_EXAMPLE_SO) {
--skip Need example plugin
}
...@@ -2,9 +2,3 @@ ...@@ -2,9 +2,3 @@
# suite.pm will make sure that all tests including this file # suite.pm will make sure that all tests including this file
# will be skipped unless innodb or xtradb is enabled # will be skipped unless innodb or xtradb is enabled
# #
# The test below is redundant
if (`SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.ENGINES WHERE engine = 'innodb' AND support IN ('YES', 'DEFAULT', 'ENABLED')`)
{
--skip Test requires InnoDB.
}
...@@ -2,10 +2,3 @@ ...@@ -2,10 +2,3 @@
# suite.pm will make sure that all tests including this file # suite.pm will make sure that all tests including this file
# will be skipped unless xtradb is enabled # will be skipped unless xtradb is enabled
# #
# The test below is redundant
if (!`SELECT count(*) FROM information_schema.plugins WHERE
plugin_name = 'innodb' AND plugin_status = 'active' AND
plugin_description LIKE '%xtradb%'`){
skip Needs XtraDB engine;
}
...@@ -2,9 +2,3 @@ ...@@ -2,9 +2,3 @@
# suite.pm will make sure that all tests including this file # suite.pm will make sure that all tests including this file
# will be skipped unless this is an embedded test run # will be skipped unless this is an embedded test run
# #
# The test below is redundant
if (`select version() like '%embedded%'`) {
This should never happen;
}
--require r/not_windows.require #
disable_query_log; # suite.pm will make sure that all tests including this file
select convert(@@version_compile_os using latin1) NOT IN ("Win32","Win64","Windows") as "TRUE"; # will be skipped unless this is on Windows
enable_query_log; #
...@@ -1250,3 +1250,4 @@ DELIMITER ; ...@@ -1250,3 +1250,4 @@ DELIMITER ;
ROLLBACK /* added by mysqlbinlog */; ROLLBACK /* added by mysqlbinlog */;
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
mysqlbinlog Ver VER for OS at ARCH
...@@ -589,3 +589,9 @@ eval SET GLOBAL SERVER_ID = $old_server_id; ...@@ -589,3 +589,9 @@ eval SET GLOBAL SERVER_ID = $old_server_id;
--exec $MYSQL_BINLOG --hexdump std_data/mdev-4645-binlog_group_id.binlog --exec $MYSQL_BINLOG --hexdump std_data/mdev-4645-binlog_group_id.binlog
--exec $MYSQL_BINLOG --hexdump std_data/mdev-4645-binlog_group_id_checksum.binlog --exec $MYSQL_BINLOG --hexdump std_data/mdev-4645-binlog_group_id_checksum.binlog
--exec $MYSQL_BINLOG --hexdump std_data/mdev-4645-binlog_none.binlog --exec $MYSQL_BINLOG --hexdump std_data/mdev-4645-binlog_none.binlog
#
# MDEV-12372 mysqlbinlog --version output is the same on 10.x as on 5.5.x, and contains not only version
#
replace_regex /.*mysqlbinlog(\.exe)? Ver .* for .* at [-_a-zA-Z0-9]+/mysqlbinlog Ver VER for OS at ARCH/;
exec $MYSQL_BINLOG --version;
...@@ -5417,7 +5417,7 @@ void Regexp_processor_pcre::pcre_exec_warn(int rc) const ...@@ -5417,7 +5417,7 @@ void Regexp_processor_pcre::pcre_exec_warn(int rc) const
switch (rc) switch (rc)
{ {
case PCRE_ERROR_NULL: case PCRE_ERROR_NULL:
errmsg= "pcre_exec: null arguement passed"; errmsg= "pcre_exec: null argument passed";
break; break;
case PCRE_ERROR_BADOPTION: case PCRE_ERROR_BADOPTION:
errmsg= "pcre_exec: bad option"; errmsg= "pcre_exec: bad option";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment