changeset 8227:2a31b2340763

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
author jjh
date Fri, 28 Jan 2011 00:09:38 -0800
parents 8c2fd7e7bcf3
children 4e6ee38974b2 524e3e85fd6d
files langtools/test/tools/javac/diags/MessageInfo.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
             }