提交 c1e0f00d 编写于 作者: K ksrini

7158090: (launcher) newly added ToolsOpts.java fails on openjdk builds

Reviewed-by: darcy
上级 9fdca611
......@@ -132,9 +132,10 @@ public class ToolsOpts extends TestHelper {
}
if (pat.compareTo("-J-version") == 0 ||
pat.compareTo("-J-showversion") == 0) {
if (!tr.contains("java version")) {
if (!tr.contains("java version") &&
!tr.contains("openjdk version")) {
throw new RuntimeException("failed: " + pat +
" should have display java version.");
" should display a version string.");
}
} else if (pat.compareTo("-J-XshowSettings:VM") == 0) {
if (!tr.contains("VM settings")) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册