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
aa635c20
Commit
aa635c20
authored
Apr 28, 2008
by
msvensson@pilot.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reenable suite timeout detection
parent
f201478c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
14 deletions
+18
-14
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+18
-14
No files found.
mysql-test/mysql-test-run.pl
View file @
aa635c20
...
...
@@ -314,11 +314,15 @@ sub main {
}
}
if
(
not
defined
@$completed
)
{
mtr_error
("
Test suite aborted
");
}
if
(
@$completed
!=
$num_tests
){
if
(
$opt_force
){
# All test should have been run, print the completed list
foreach
my
$test
(
@completed
){
foreach
my
$test
(
@
$
completed
){
$test
->
print_test
();
}
}
...
...
@@ -330,8 +334,6 @@ sub main {
"
To continue, re-run with '--force'
");
}
mtr_verbose
("
Server exit
\n
");
mtr_print_line
();
mtr_report_stats
(
$completed
);
...
...
@@ -356,6 +358,8 @@ sub run_test_server {
my
%
running
;
my
$result
;
my
$suite_timeout_proc
=
My::
SafeProcess
->
timer
(
$opt_suite_timeout
*
60
);
my
$s
=
IO::
Select
->
new
();
$s
->
add
(
$server
);
while
(
1
)
{
...
...
@@ -375,6 +379,7 @@ sub run_test_server {
mtr_verbose
("
Child closed socket
");
$s
->
remove
(
$sock
);
if
(
--
$childs
==
0
){
$suite_timeout_proc
->
kill
();
return
$completed
;
}
next
;
...
...
@@ -433,6 +438,7 @@ sub run_test_server {
if
(
!
$opt_force
)
{
# Test has failed, force is off
$suite_timeout_proc
->
kill
();
push
(
@$completed
,
$result
);
return
$completed
;
}
...
...
@@ -549,6 +555,15 @@ sub run_test_server {
}
}
}
# ----------------------------------------------------
# Check if test suite timer expired
# ----------------------------------------------------
if
(
!
$suite_timeout_proc
->
wait_one
(
0
)
)
{
mtr_report
("
Test suite timeout! Terminating...
");
return
undef
;
}
}
}
...
...
@@ -2771,7 +2786,6 @@ sub run_testcase ($) {
# ----------------------------------------------------------------------
if
(
$opt_start
or
$opt_start_dirty
)
{
# MASV $suite_timeout_proc->kill();
mtr_report
("
\n
Started
",
started
(
all_servers
()));
mtr_report
("
Waiting for server(s) to exit...
");
my
$proc
=
My::
SafeProcess
->
wait_any
();
...
...
@@ -2930,16 +2944,6 @@ sub run_testcase ($) {
return
1
;
}
# ----------------------------------------------------
# Check if test suite timer expired
# ----------------------------------------------------
# MASV
# if ( $proc eq $suite_timeout_proc )
# {
# mtr_report("Test suite timeout! Terminating...");
# exit(1);
# }
mtr_error
("
Unhandled process
$proc
exited
");
}
mtr_error
("
Should never come here
");
...
...
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