summaryrefslogtreecommitdiff
path: root/mysql-test/lib/mtr_process.pl
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2011-12-14 10:59:11 +0100
committerSergei Golubchik <sergii@pisem.net>2011-12-14 10:59:11 +0100
commit818af42f1de640f3951fcfde0cb9b7b76d06a01e (patch)
tree01ce0cff9b245923397fe70e5f02ccbdb309ccb7 /mysql-test/lib/mtr_process.pl
parentdb8f698c8a03bcc920b9453f8822fbbd8ec7ea66 (diff)
downloadmariadb-git-818af42f1de640f3951fcfde0cb9b7b76d06a01e.tar.gz
new valgrind suppression for ld.so
give mysqld more time to start under valgrind
Diffstat (limited to 'mysql-test/lib/mtr_process.pl')
-rw-r--r--mysql-test/lib/mtr_process.pl9
1 files changed, 5 insertions, 4 deletions
diff --git a/mysql-test/lib/mtr_process.pl b/mysql-test/lib/mtr_process.pl
index 88e714f6f8d..cebb895da6e 100644
--- a/mysql-test/lib/mtr_process.pl
+++ b/mysql-test/lib/mtr_process.pl
@@ -40,7 +40,7 @@ BEGIN
eval 'sub USE_NETPING { $use_netping }';
}
-sub sleep_until_file_created ($$$);
+sub sleep_until_file_created ($$$$);
sub mtr_ping_port ($);
sub mtr_ping_port ($) {
@@ -102,10 +102,11 @@ sub mtr_ping_port ($) {
# FIXME check that the pidfile contains the expected pid!
-sub sleep_until_file_created ($$$) {
+sub sleep_until_file_created ($$$$) {
my $pidfile= shift;
my $timeout= shift;
my $proc= shift;
+ my $warn_seconds = shift;
my $sleeptime= 100; # Milliseconds
my $loops= ($timeout * 1000) / $sleeptime;
@@ -128,8 +129,8 @@ sub sleep_until_file_created ($$$) {
mtr_debug("Sleep $sleeptime milliseconds waiting for $pidfile");
- # Print extra message every 60 seconds
- if ( $seconds > 1 && int($seconds * 10) % 600 == 0 && $seconds < $timeout )
+ # Print extra message every $warn_seconds seconds
+ if ( $seconds > 1 && $seconds % $warn_seconds == 0 && $seconds < $timeout )
{
my $left= $timeout - $seconds;
mtr_warning("Waited $seconds seconds for $pidfile to be created, " .