Prechádzať zdrojové kódy

HADOOP-9365. TestHAZKUtil fails on Windows. Contributed by Ivan Mitic.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1453676 13f79535-47bb-0310-9956-ffa450edef68
Suresh Srinivas 12 rokov pred
rodič
commit
33b3bcd357

+ 2 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -459,6 +459,8 @@ Trunk (Unreleased)
     HADOOP-9376. TestProxyUserFromEnv fails on a Windows domain joined machine.
     (Ivan Mitic via suresh)
 
+    HADOOP-9365. TestHAZKUtil fails on Windows. (Ivan Mitic via suresh)
+
 Release 2.0.4-beta - UNRELEASED
 
   INCOMPATIBLE CHANGES

+ 2 - 1
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ha/TestHAZKUtil.java

@@ -40,7 +40,8 @@ public class TestHAZKUtil {
       "test-file");
   
   /** A path which is expected not to exist */
-  private static final String BOGUS_FILE = "/xxxx-this-does-not-exist";
+  private static final String BOGUS_FILE =
+      new File("/xxxx-this-does-not-exist").getPath();
 
   @Test
   public void testEmptyACL() {