提交 64f8eda3 编写于 作者: J jjh

7015482: jtreg test tools/javac/diags/MessageInfo.java fails when test/ dir is...

7015482: jtreg test tools/javac/diags/MessageInfo.java fails when test/ dir is not in langtools repo
Summary: Don't fail if the needed file isn't present, if running under jtreg.
Reviewed-by: jjg
上级 9f575334
...@@ -173,6 +173,10 @@ public class MessageInfo { ...@@ -173,6 +173,10 @@ public class MessageInfo {
} }
} }
if (msgFile == null) { if (msgFile == null) {
if (jtreg) {
System.err.println("Warning: no message file available, test skipped");
return true;
}
error("no message file available"); error("no message file available");
return false; return false;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册