Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
7197f142
Commit
7197f142
authored
Nov 27, 2010
by
Bjorn Munch
Browse files
Options
Browse Files
Download
Plain Diff
merge from 5.1-mtr
parents
d6d0827e
067710eb
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
25 deletions
+27
-25
mysql-test/extra/rpl_tests/rpl_get_master_version_and_clock.test
...est/extra/rpl_tests/rpl_get_master_version_and_clock.test
+2
-6
mysql-test/include/restart_mysqld.inc
mysql-test/include/restart_mysqld.inc
+2
-6
mysql-test/lib/mtr_cases.pm
mysql-test/lib/mtr_cases.pm
+1
-1
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+20
-6
mysql-test/suite/rpl/t/rpl_trigger.test
mysql-test/suite/rpl/t/rpl_trigger.test
+2
-6
No files found.
mysql-test/extra/rpl_tests/rpl_get_master_version_and_clock.test
View file @
7197f142
...
@@ -53,9 +53,7 @@ source include/wait_for_slave_to_start.inc;
...
@@ -53,9 +53,7 @@ source include/wait_for_slave_to_start.inc;
connection
master
;
connection
master
;
# Write file to make mysql-test-run.pl expect the "crash", but don't start
# Write file to make mysql-test-run.pl expect the "crash", but don't start
# it until it's told to
# it until it's told to
--
write_file
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
--
exec
echo
"wait"
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
wait
EOF
# Send shutdown to the connected server and give
# Send shutdown to the connected server and give
# it 10 seconds to die before zapping it
# it 10 seconds to die before zapping it
...
@@ -85,9 +83,7 @@ source include/wait_for_slave_io_error.inc;
...
@@ -85,9 +83,7 @@ source include/wait_for_slave_io_error.inc;
eval
set
@@
global
.
debug
=
"-d,
$dbug_sync_point
"
;
eval
set
@@
global
.
debug
=
"-d,
$dbug_sync_point
"
;
# Write file to make mysql-test-run.pl start up the server again
# Write file to make mysql-test-run.pl start up the server again
--
append_file
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
--
exec
echo
"restart"
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
restart
EOF
connection
master
;
connection
master
;
# Turn on reconnect
# Turn on reconnect
...
...
mysql-test/include/restart_mysqld.inc
View file @
7197f142
# Write file to make mysql-test-run.pl expect the "crash", but don't start
# Write file to make mysql-test-run.pl expect the "crash", but don't start
# it until it's told to
# it until it's told to
--
write_file
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
--
exec
echo
"wait"
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
wait
EOF
# Send shutdown to the connected server and give
# Send shutdown to the connected server and give
# it 10 seconds to die before zapping it
# it 10 seconds to die before zapping it
shutdown_server
10
;
shutdown_server
10
;
# Write file to make mysql-test-run.pl start up the server again
# Write file to make mysql-test-run.pl start up the server again
--
append_file
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
--
exec
echo
"restart"
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
restart
EOF
# Turn on reconnect
# Turn on reconnect
--
enable_reconnect
--
enable_reconnect
...
...
mysql-test/lib/mtr_cases.pm
View file @
7197f142
...
@@ -143,7 +143,7 @@ sub collect_test_cases ($$$) {
...
@@ -143,7 +143,7 @@ sub collect_test_cases ($$$) {
{
{
last
unless
$opt_reorder
;
last
unless
$opt_reorder
;
# test->{name} is always in suite.name format
# test->{name} is always in suite.name format
if
(
$test
->
{
name
}
=~
/
.*\.$tname
/
)
if
(
$test
->
{
name
}
=~
/
^$sname.*\.$tname$
/
)
{
{
$found
=
1
;
$found
=
1
;
last
;
last
;
...
...
mysql-test/mysql-test-run.pl
View file @
7197f142
...
@@ -569,7 +569,10 @@ sub run_test_server ($$$) {
...
@@ -569,7 +569,10 @@ sub run_test_server ($$$) {
if
(
!
$opt_force
)
{
if
(
!
$opt_force
)
{
# Test has failed, force is off
# Test has failed, force is off
push
(
@$completed
,
$result
);
push
(
@$completed
,
$result
);
return
$completed
;
return
$completed
unless
$result
->
{'
dont_kill_server
'};
# Prevent kill of server, to get valgrind report
print
$sock
"
BYE
\n
";
next
;
}
}
elsif
(
$opt_max_test_fail
>
0
and
elsif
(
$opt_max_test_fail
>
0
and
$num_failed_test
>=
$opt_max_test_fail
)
{
$num_failed_test
>=
$opt_max_test_fail
)
{
...
@@ -809,13 +812,14 @@ sub run_worker ($) {
...
@@ -809,13 +812,14 @@ sub run_worker ($) {
elsif
(
$line
eq
'
BYE
'){
elsif
(
$line
eq
'
BYE
'){
mtr_report
("
Server said BYE
");
mtr_report
("
Server said BYE
");
stop_all_servers
(
$opt_shutdown_timeout
);
stop_all_servers
(
$opt_shutdown_timeout
);
my
$valgrind_reports
=
0
;
if
(
$opt_valgrind_mysqld
)
{
if
(
$opt_valgrind_mysqld
)
{
valgrind_exit_reports
();
$valgrind_reports
=
valgrind_exit_reports
();
}
}
if
(
$opt_gprof
)
{
if
(
$opt_gprof
)
{
gprof_collect
(
find_mysqld
(
$basedir
),
keys
%
gprof_dirs
);
gprof_collect
(
find_mysqld
(
$basedir
),
keys
%
gprof_dirs
);
}
}
exit
(
0
);
exit
(
$valgrind_reports
);
}
}
else
{
else
{
mtr_error
("
Could not understand server, '
$line
'
");
mtr_error
("
Could not understand server, '
$line
'
");
...
@@ -3680,7 +3684,6 @@ sub run_testcase ($) {
...
@@ -3680,7 +3684,6 @@ sub run_testcase ($) {
# ----------------------------------------------------
# ----------------------------------------------------
# Check if it was an expected crash
# Check if it was an expected crash
# ----------------------------------------------------
# ----------------------------------------------------
SRVDIED:
my
$check_crash
=
check_expected_crash_and_restart
(
$proc
);
my
$check_crash
=
check_expected_crash_and_restart
(
$proc
);
if
(
$check_crash
)
if
(
$check_crash
)
{
{
...
@@ -3690,6 +3693,7 @@ sub run_testcase ($) {
...
@@ -3690,6 +3693,7 @@ sub run_testcase ($) {
next
;
next
;
}
}
SRVDIED:
# ----------------------------------------------------
# ----------------------------------------------------
# Stop the test case timer
# Stop the test case timer
# ----------------------------------------------------
# ----------------------------------------------------
...
@@ -4239,7 +4243,12 @@ sub after_failure ($) {
...
@@ -4239,7 +4243,12 @@ sub after_failure ($) {
sub
report_failure_and_restart
($)
{
sub
report_failure_and_restart
($)
{
my
$tinfo
=
shift
;
my
$tinfo
=
shift
;
stop_all_servers
();
if
(
$opt_valgrind_mysqld
&&
(
$tinfo
->
{'
warnings
'}
||
$tinfo
->
{'
timeout
'}))
{
# In these cases we may want valgrind report from normal termination
$tinfo
->
{'
dont_kill_server
'}
=
1
;
}
# Shotdown properly if not to be killed (for valgrind)
stop_all_servers
(
$tinfo
->
{'
dont_kill_server
'}
?
$opt_shutdown_timeout
:
0
);
$tinfo
->
{'
result
'}
=
'
MTR_RES_FAILED
';
$tinfo
->
{'
result
'}
=
'
MTR_RES_FAILED
';
...
@@ -5366,6 +5375,8 @@ sub valgrind_arguments {
...
@@ -5366,6 +5375,8 @@ sub valgrind_arguments {
#
#
sub
valgrind_exit_reports
()
{
sub
valgrind_exit_reports
()
{
my
$found_err
=
0
;
foreach
my
$log_file
(
keys
%
mysqld_logs
)
foreach
my
$log_file
(
keys
%
mysqld_logs
)
{
{
my
@culprits
=
();
my
@culprits
=
();
...
@@ -5401,7 +5412,7 @@ sub valgrind_exit_reports() {
...
@@ -5401,7 +5412,7 @@ sub valgrind_exit_reports() {
next
;
next
;
}
}
# This line marks the start of a valgrind report
# This line marks the start of a valgrind report
$found_report
=
1
if
$line
=~
/
ERROR
SUMMARY:/
;
$found_report
=
1
if
$line
=~
/
^==\d+== .*
SUMMARY:/
;
if
(
$found_report
)
{
if
(
$found_report
)
{
$line
=~
s/^==\d+== //
;
$line
=~
s/^==\d+== //
;
...
@@ -5418,8 +5429,11 @@ sub valgrind_exit_reports() {
...
@@ -5418,8 +5429,11 @@ sub valgrind_exit_reports() {
mtr_print
("
Valgrind report from
$log_file
after tests:
\n
",
@culprits
);
mtr_print
("
Valgrind report from
$log_file
after tests:
\n
",
@culprits
);
mtr_print_line
();
mtr_print_line
();
print
("
$valgrind_rep
\n
");
print
("
$valgrind_rep
\n
");
$found_err
=
1
;
}
}
}
}
return
$found_err
;
}
}
#
#
...
...
mysql-test/suite/rpl/t/rpl_trigger.test
View file @
7197f142
...
@@ -313,9 +313,7 @@ FLUSH LOGS;
...
@@ -313,9 +313,7 @@ FLUSH LOGS;
# Stop master server
# Stop master server
--
echo
-->
Stop
master
server
--
echo
-->
Stop
master
server
--
write_file
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
--
exec
echo
"wait"
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
wait
EOF
--
shutdown_server
10
--
shutdown_server
10
--
source
include
/
wait_until_disconnected
.
inc
--
source
include
/
wait_until_disconnected
.
inc
# Replace binlog
# Replace binlog
...
@@ -323,9 +321,7 @@ remove_file $MYSQLD_DATADIR/master-bin.000001;
...
@@ -323,9 +321,7 @@ remove_file $MYSQLD_DATADIR/master-bin.000001;
copy_file
$MYSQL_TEST_DIR
/
std_data
/
bug16266
.
000001
$MYSQLD_DATADIR
/
master
-
bin
.
000001
;
copy_file
$MYSQL_TEST_DIR
/
std_data
/
bug16266
.
000001
$MYSQLD_DATADIR
/
master
-
bin
.
000001
;
--
echo
-->
Start
master
server
--
echo
-->
Start
master
server
--
append_file
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
--
exec
echo
"restart"
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
restart
EOF
--
enable_reconnect
--
enable_reconnect
--
source
include
/
wait_until_connected_again
.
inc
--
source
include
/
wait_until_connected_again
.
inc
let
$binlog_version
=
query_get_value
(
SHOW
BINLOG
EVENTS
,
Info
,
1
);
let
$binlog_version
=
query_get_value
(
SHOW
BINLOG
EVENTS
,
Info
,
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment