changeset 13120:db013eafc5c3

7011840: TEST_BUG java/util/Locale/LocaleEnhanceTest.java Summary: Outputting extra information in LocaleEnhanceTest.java Reviewed-by: peytoia, naoto
author rgoel
date Tue, 24 Nov 2015 14:46:09 +0530
parents 715972927a17
children 33fd40487d6d
files test/java/util/Locale/LocaleEnhanceTest.java
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/util/Locale/LocaleEnhanceTest.java	Tue Nov 24 19:02:33 2015 +0300
+++ b/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;
         }