7011840: TEST_BUG java/util/Locale/LocaleEnhanceTest.java
authorrgoel
Tue, 24 Nov 2015 14:46:09 +0530
changeset 34332 d17e3a87e146
parent 34331 7b1fea58eefe
child 34333 649abc6c35eb
7011840: TEST_BUG java/util/Locale/LocaleEnhanceTest.java Summary: Outputting extra information in LocaleEnhanceTest.java Reviewed-by: peytoia, naoto
jdk/test/java/util/Locale/LocaleEnhanceTest.java
--- a/jdk/test/java/util/Locale/LocaleEnhanceTest.java	Tue Nov 24 19:02:33 2015 +0300
+++ b/jdk/test/java/util/Locale/LocaleEnhanceTest.java	Tue Nov 24 14:46:09 2015 +0530
@@ -1180,8 +1180,11 @@
             dataDir = new File(dataDirName);
         }
 
-        if (dataDir == null || !dataDir.isDirectory()) {
-            errln("Could not locate the serialized test case data location");
+        if (dataDir == null) {
+            errln("'dataDir' is null. serialized.data.dir Property value is "+dataDirName);
+            return;
+        } else if (!dataDir.isDirectory()) {
+            errln("'dataDir' is not a directory. dataDir: "+dataDir.toString());
             return;
         }