提交 d2a76496 authored 作者: Noel Grandin's avatar Noel Grandin

try to work around travis failure

上级 12afe134
...@@ -105,8 +105,13 @@ public class TestFileLockProcess extends TestBase { ...@@ -105,8 +105,13 @@ public class TestFileLockProcess extends TestBase {
buff.append((char) ch); buff.append((char) ch);
} }
proc.waitFor(); proc.waitFor();
// The travis build somehow generates messages like this from javac. No idea where it is coming from.
String processOutput = buff.toString();
processOutput = processOutput.replaceAll("Picked up _JAVA_OPTIONS: -Xmx2048m -Xms512m", "").trim();
assertEquals(0, proc.exitValue()); assertEquals(0, proc.exitValue());
assertTrue(i + ": " + buff.toString(), buff.length() == 0); assertTrue(i + ": " + buff.toString(), processOutput.isEmpty());
} }
Thread.sleep(100); Thread.sleep(100);
conn.close(); conn.close();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论