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
822f8103
Commit
822f8103
authored
Aug 31, 2009
by
Bjorn Munch
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
5166a56d
de5ab42d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
7 deletions
+20
-7
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+20
-7
No files found.
mysql-test/mysql-test-run.pl
View file @
822f8103
...
...
@@ -3571,8 +3571,8 @@ sub run_testcase ($) {
# error log and write all lines that look
# suspicious into $error_log.warnings
#
sub
extract_warning_lines
($)
{
my
(
$error_log
)
=
@_
;
sub
extract_warning_lines
($
$
)
{
my
(
$error_log
,
$tname
)
=
@_
;
# Open the servers .err log file and read all lines
# belonging to current tets into @lines
...
...
@@ -3580,14 +3580,27 @@ sub extract_warning_lines ($) {
or
mtr_error
("
Could not open file '
$error_log
' for reading: $!
");
my
@lines
;
my
$found_test
=
0
;
# Set once we've found the log of this test
while
(
my
$line
=
<
$Ferr
>
)
{
if
(
$line
=~
/^CURRENT_TEST:/
)
if
(
$found_test
)
{
# Throw away lines from previous tests
@lines
=
();
# If test wasn't last after all, discard what we found, test again.
if
(
$line
=~
/^CURRENT_TEST:/
)
{
@lines
=
();
$found_test
=
$line
=~
/^CURRENT_TEST: $tname/
;
}
else
{
push
(
@lines
,
$line
);
}
}
else
{
# Search for beginning of test, until found
$found_test
=
1
if
(
$line
=~
/^CURRENT_TEST: $tname/
);
}
push
(
@lines
,
$line
);
}
$Ferr
=
undef
;
# Close error log file
...
...
@@ -3665,7 +3678,7 @@ sub start_check_warnings ($$) {
my
$log_error
=
$mysqld
->
value
('
#log-error
');
# To be communicated to the test
$ENV
{
MTR_LOG_ERROR
}
=
$log_error
;
extract_warning_lines
(
$log_error
);
extract_warning_lines
(
$log_error
,
$tinfo
->
{
name
}
);
my
$args
;
mtr_init_args
(
\
$args
);
...
...
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