changeset 895:92ab09ed59fd

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 3da26790ccb7
children 2088e674f0e0 babf86a1ac92
files test/tools/javac/diags/MessageInfo.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/javac/diags/MessageInfo.java	Wed Jan 26 13:45:25 2011 -0800
+++ b/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;
             }