Add heartbeat thread to gen minimal output for travis, appveyor to avoid timeout.

This commit is contained in:
parrt 2016-11-30 08:27:05 -08:00
parent ca9628e1b1
commit cd4c9e8728
1 changed files with 20 additions and 0 deletions

View File

@ -49,6 +49,26 @@ public abstract class BaseRuntimeTest {
"Node", "Safari", "Firefox", "Explorer", "Chrome"
};
static {
// Add heartbeat thread to gen minimal output for travis, appveyor to
// avoid timeout.
Thread t = new Thread("heartbeat") {
@Override
public void run() {
while (true) {
System.out.print('.');
try {
Thread.sleep(5000);
}
catch (Exception e) {
e.printStackTrace();
}
}
}
};
t.start();
}
/** ANTLR isn't thread-safe to process grammars so we use a global lock for testing */
public static final Object antlrLock = new Object();