7015482: jtreg test tools/javac/diags/MessageInfo.java fails when test/ dir is not in langtools repo
authorjjh
Fri, 28 Jan 2011 00:09:38 -0800
changeset 8227 2a31b2340763
parent 8226 8c2fd7e7bcf3
child 8228 4e6ee38974b2
child 8231 524e3e85fd6d
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
langtools/test/tools/javac/diags/MessageInfo.java
--- a/langtools/test/tools/javac/diags/MessageInfo.java	Wed Jan 26 13:45:25 2011 -0800
+++ b/langtools/test/tools/javac/diags/MessageInfo.java	Fri Jan 28 00:09:38 2011 -0800
@@ -173,6 +173,10 @@
                 }
             }
             if (msgFile == null) {
+                if (jtreg) {
+                    System.err.println("Warning: no message file available, test skipped");
+                    return true;
+                }
                 error("no message file available");
                 return false;
             }