You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by cn...@apache.org on 2013/07/11 07:57:49 UTC

svn commit: r1502123 - in /hadoop/common/branches/branch-1-win: CHANGES.branch-1-win.txt src/test/org/apache/hadoop/io/nativeio/TestNativeIO.java

Author: cnauroth
Date: Thu Jul 11 05:57:49 2013
New Revision: 1502123

URL: http://svn.apache.org/r1502123
Log:
HADOOP-9722. Branch-1-win TestNativeIO failed caused by Window incompatible test case. Contributed by Xi Fang.

Modified:
    hadoop/common/branches/branch-1-win/CHANGES.branch-1-win.txt
    hadoop/common/branches/branch-1-win/src/test/org/apache/hadoop/io/nativeio/TestNativeIO.java

Modified: hadoop/common/branches/branch-1-win/CHANGES.branch-1-win.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1-win/CHANGES.branch-1-win.txt?rev=1502123&r1=1502122&r2=1502123&view=diff
==============================================================================
--- hadoop/common/branches/branch-1-win/CHANGES.branch-1-win.txt (original)
+++ hadoop/common/branches/branch-1-win/CHANGES.branch-1-win.txt Thu Jul 11 05:57:49 2013
@@ -307,6 +307,9 @@ Branch-hadoop-1-win (branched from branc
     HADOOP-9719. Branch-1-win TestFsShellReturnCode#testChgrp() failed caused by
     incorrect exit codes. (Xi Fang via cnauroth)
 
+    HADOOP-9722. Branch-1-win TestNativeIO failed caused by Window incompatible
+    test case. (Xi Fang via cnauroth)
+
   Merged from branch-1
 
     HDFS-385. Backport: Add support for an experimental API that allows a

Modified: hadoop/common/branches/branch-1-win/src/test/org/apache/hadoop/io/nativeio/TestNativeIO.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1-win/src/test/org/apache/hadoop/io/nativeio/TestNativeIO.java?rev=1502123&r1=1502122&r2=1502123&view=diff
==============================================================================
--- hadoop/common/branches/branch-1-win/src/test/org/apache/hadoop/io/nativeio/TestNativeIO.java (original)
+++ hadoop/common/branches/branch-1-win/src/test/org/apache/hadoop/io/nativeio/TestNativeIO.java Thu Jul 11 05:57:49 2013
@@ -274,6 +274,7 @@ public class TestNativeIO {
 
   @Test
   public void testPosixFadvise() throws Exception {
+    org.junit.Assume.assumeTrue(!Shell.WINDOWS);
     FileInputStream fis = new FileInputStream("/dev/zero");
     try {
       NativeIO.posix_fadvise(fis.getFD(), 0, 0,