This is an automated email from the ASF dual-hosted git repository.

tibordigana pushed a commit to branch buildfix
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git


The following commit(s) were added to refs/heads/buildfix by this push:
     new 90dae28  investigating build failure
90dae28 is described below

commit 90dae28e12fa79d5f6d6539a497985d748615fca
Author: tibordigana <[email protected]>
AuthorDate: Wed Jul 17 23:50:34 2019 +0200

    investigating build failure
---
 .../java/org/apache/maven/surefire/booter/ForkedBooter.java   | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git 
a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java
 
b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java
index cd41697..49afdec 100644
--- 
a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java
+++ 
b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java
@@ -34,6 +34,7 @@ import java.lang.reflect.InvocationTargetException;
 import java.security.AccessControlException;
 import java.security.AccessController;
 import java.security.PrivilegedAction;
+import java.util.Date;
 import java.util.concurrent.ScheduledExecutorService;
 import java.util.concurrent.ScheduledThreadPoolExecutor;
 import java.util.concurrent.Semaphore;
@@ -42,6 +43,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
 
 import static java.lang.Thread.currentThread;
 import static java.util.concurrent.TimeUnit.MILLISECONDS;
+import static java.util.concurrent.TimeUnit.SECONDS;
 import static 
org.apache.maven.surefire.booter.SystemPropertyManager.setSystemProperties;
 import static org.apache.maven.surefire.util.ReflectionUtils.instantiateOneArg;
 import static 
org.apache.maven.surefire.util.internal.DaemonThreadFactory.newDaemonThreadFactory;
@@ -107,6 +109,15 @@ public final class ForkedBooter
         classLoader.setDefaultAssertionStatus( 
classpathConfiguration.isEnableAssertions() );
         boolean readTestsFromCommandReader = 
providerConfiguration.isReadTestsFromInStream();
         testSet = createTestSet( providerConfiguration.getTestForFork(), 
readTestsFromCommandReader, classLoader );
+
+        createPingScheduler().scheduleAtFixedRate( new Runnable()
+        {
+            @Override
+            public void run()
+            {
+                DumpErrorSingleton.getSingleton().dumpText( new Date() + " I 
am in PING." );
+            }
+        }, 0L, PING_TIMEOUT_IN_SECONDS, SECONDS );
     }
 
     private void execute()

Reply via email to