소스 검색

HADOOP-9624. TestFSMainOperationsLocalFileSystem failed when the Hadoop test root path has "X" in its name. Contributed by Xi Fang.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1@1494374 13f79535-47bb-0310-9956-ffa450edef68
Chris Nauroth 12 년 전
부모
커밋
165e62b803
2개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 0
      CHANGES.txt
  2. 2 2
      src/test/org/apache/hadoop/fs/FSMainOperationsBaseTest.java

+ 3 - 0
CHANGES.txt

@@ -55,6 +55,9 @@ Release 1.3.0 - unreleased
     MAPREDUCE-5250. Searching for ';' in JobTracker History throws 
     ArrayOutOfBoundException. (kkambatl via tucu)
 
+    HADOOP-9624. TestFSMainOperationsLocalFileSystem failed when the Hadoop test
+    root path has "X" in its name. (Xi Fang via cnauroth)
+
 Release 1.2.1 - Unreleased 
 
   INCOMPATIBLE CHANGES

+ 2 - 2
src/test/org/apache/hadoop/fs/FSMainOperationsBaseTest.java

@@ -66,10 +66,10 @@ public abstract class FSMainOperationsBaseTest  {
     }
   };
 
-  //A test filter with returns any path containing a "b" 
+  //A test filter with returns any path containing an "x" or "X"
   final private static PathFilter TEST_X_FILTER = new PathFilter() {
     public boolean accept(Path file) {
-      if(file.getName().contains("x") || file.toString().contains("X"))
+      if(file.getName().contains("x") || file.getName().contains("X"))
         return true;
       else
         return false;