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
ed647083
Commit
ed647083
authored
Sep 22, 2008
by
Magnus Svensson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WL#4189 fix small scheduler loop problem causing report that not all tests were run
parent
a925ec10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+14
-9
No files found.
mysql-test/mysql-test-run.pl
View file @
ed647083
...
@@ -343,12 +343,12 @@ sub main {
...
@@ -343,12 +343,12 @@ sub main {
if
(
@$completed
!=
$num_tests
){
if
(
@$completed
!=
$num_tests
){
if
(
$opt_force
){
#
if ($opt_force){
# All test should have been run, print any that are still in $tests
#
# All test should have been run, print any that are still in $tests
foreach
my
$test
(
@$tests
){
#
foreach my $test ( @$tests ){
$test
->
print_test
();
#
$test->print_test();
}
#
}
}
#
}
# Not all tests completed, failure
# Not all tests completed, failure
mtr_report
();
mtr_report
();
...
@@ -537,15 +537,20 @@ sub run_test_server ($$$) {
...
@@ -537,15 +537,20 @@ sub run_test_server ($$$) {
my
$next
;
my
$next
;
my
$second_best
;
my
$second_best
;
for
(
my
$i
=
0
;
$i
<=
$#
$tests
;
$i
++
)
for
(
my
$i
=
0
;
$i
<=
@
$tests
;
$i
++
)
{
{
my
$t
=
$tests
->
[
$i
];
my
$t
=
$tests
->
[
$i
];
last
unless
defined
$t
;
if
(
run_testcase_check_skip_test
(
$t
)){
if
(
run_testcase_check_skip_test
(
$t
)){
# Move the test to completed list
# Move the test to completed list
#mtr_report("skip - Moving test $i to completed");
#mtr_report("skip - Moving test $i to completed");
push
(
@$completed
,
splice
(
@$tests
,
$i
,
1
));
push
(
@$completed
,
splice
(
@$tests
,
$i
,
1
));
next
;
# Since the test at pos $i was taken away, next
# test will also be at $i -> redo
redo
;
}
}
# Limit number of parallell NDB tests
# Limit number of parallell NDB tests
...
@@ -575,7 +580,7 @@ sub run_test_server ($$$) {
...
@@ -575,7 +580,7 @@ sub run_test_server ($$$) {
# Use second best choice if no other test has been found
# Use second best choice if no other test has been found
if
(
!
$next
and
defined
$second_best
){
if
(
!
$next
and
defined
$second_best
){
#mtr_report("Take second best choice $second_best");
#mtr_report("Take second best choice $second_best");
mtr_error
("
Internal error, second best too large
")
mtr_error
("
Internal error, second best too large
(
$second_best
)
")
if
$second_best
>
$#$tests
;
if
$second_best
>
$#$tests
;
$next
=
splice
(
@$tests
,
$second_best
,
1
);
$next
=
splice
(
@$tests
,
$second_best
,
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