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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
cad53ac7
Commit
cad53ac7
authored
Nov 24, 2010
by
Bjorn Munch
Browse files
Options
Browse Files
Download
Plain Diff
upmerge 58424 and 43418 follow-up
parents
5da7193a
dffe3ad3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+20
-6
No files found.
mysql-test/mysql-test-run.pl
View file @
cad53ac7
...
...
@@ -604,7 +604,10 @@ sub run_test_server ($$$) {
if
(
!
$opt_force
)
{
# Test has failed, force is off
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
$num_failed_test
>=
$opt_max_test_fail
)
{
...
...
@@ -851,15 +854,16 @@ sub run_worker ($) {
mtr_report
("
Server said BYE
");
stop_all_servers
(
$opt_shutdown_timeout
);
mark_time_used
('
restart
');
my
$valgrind_reports
=
0
;
if
(
$opt_valgrind_mysqld
)
{
valgrind_exit_reports
();
$valgrind_reports
=
valgrind_exit_reports
();
}
if
(
$opt_gprof
)
{
gprof_collect
(
find_mysqld
(
$basedir
),
keys
%
gprof_dirs
);
}
mark_time_used
('
init
');
print_times_used
(
$server
,
$thread_num
);
exit
(
0
);
exit
(
$valgrind_reports
);
}
else
{
mtr_error
("
Could not understand server, '
$line
'
");
...
...
@@ -3831,7 +3835,6 @@ sub run_testcase ($) {
# ----------------------------------------------------
# Check if it was an expected crash
# ----------------------------------------------------
SRVDIED:
my
$check_crash
=
check_expected_crash_and_restart
(
$proc
);
if
(
$check_crash
)
{
...
...
@@ -3841,6 +3844,7 @@ sub run_testcase ($) {
next
;
}
SRVDIED:
# ----------------------------------------------------
# Stop the test case timer
# ----------------------------------------------------
...
...
@@ -4371,7 +4375,12 @@ sub after_failure ($) {
sub
report_failure_and_restart
($)
{
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
';
...
...
@@ -5503,6 +5512,8 @@ sub valgrind_arguments {
#
sub
valgrind_exit_reports
()
{
my
$found_err
=
0
;
foreach
my
$log_file
(
keys
%
mysqld_logs
)
{
my
@culprits
=
();
...
...
@@ -5538,7 +5549,7 @@ sub valgrind_exit_reports() {
next
;
}
# 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
)
{
$line
=~
s/^==\d+== //
;
...
...
@@ -5555,8 +5566,11 @@ sub valgrind_exit_reports() {
mtr_print
("
Valgrind report from
$log_file
after tests:
\n
",
@culprits
);
mtr_print_line
();
print
("
$valgrind_rep
\n
");
$found_err
=
1
;
}
}
return
$found_err
;
}
#
...
...
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