From 33b3bcd357c8fca7a8ff22847209aabfa97184c3 Mon Sep 17 00:00:00 2001 From: Suresh Srinivas Date: Thu, 7 Mar 2013 03:42:18 +0000 Subject: [PATCH] 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 --- hadoop-common-project/hadoop-common/CHANGES.txt | 2 ++ .../src/test/java/org/apache/hadoop/ha/TestHAZKUtil.java | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index b67ad27c7f3..12542122005 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/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 diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ha/TestHAZKUtil.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ha/TestHAZKUtil.java index 7b4d63ad963..90371f3730f 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ha/TestHAZKUtil.java +++ b/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() {