瀏覽代碼

HADOOP-2523. Fix TestDFSShell.testFilePermissions on Windows. Contributed by Raghu Angadi.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@608983 13f79535-47bb-0310-9956-ffa450edef68
Nigel Daley 17 年之前
父節點
當前提交
f612206d57
共有 2 個文件被更改,包括 4 次插入6 次删除
  1. 3 0
      CHANGES.txt
  2. 1 6
      src/test/org/apache/hadoop/dfs/TestDFSShell.java

+ 3 - 0
CHANGES.txt

@@ -338,6 +338,9 @@ Trunk (unreleased changes)
     HADOOP-2488. Fix a regression in random read performance.
     (Michael Stack via rangadi)
 
+    HADOOP-2523. Fix TestDFSShell.testFilePermissions on Windows.
+    (Raghu Angadi via nigel)
+
 Release 0.15.2 - 2008-01-02
 
   BUG FIXES

+ 1 - 6
src/test/org/apache/hadoop/dfs/TestDFSShell.java

@@ -302,8 +302,7 @@ public class TestDFSShell extends TestCase {
   }
 
   /**
-   * Test chmod, getOwner(). 
-   * How do we test chown and chgrp?
+   * Test chmod. How do we test chown and chgrp?
    */
   public void testFilePermissions() throws IOException {
     Configuration conf = new Configuration();
@@ -342,10 +341,6 @@ public class TestDFSShell extends TestCase {
      assertEquals("rw-rw-rw-",
                   fs.getFileStatus(file).getPermission().toString());
      
-     //test username
-     assertEquals(System.getProperty("user.name"), 
-                  fs.getFileStatus(file).getOwner());
-
      fs.delete(dir);     
     } catch (IOException e) {
       throw e;