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 st...@apache.org on 2019/10/29 17:12:07 UTC
[hadoop] branch branch-3.2 updated: HADOOP-16669.
TestRawLocalFileSystemContract.testPermission fails if no native library.
This is an automated email from the ASF dual-hosted git repository.
stevel pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.2 by this push:
new 1932499 HADOOP-16669. TestRawLocalFileSystemContract.testPermission fails if no native library.
1932499 is described below
commit 1932499eafdd91803b4f670d6c78a89ed69944e0
Author: Steve Loughran <st...@cloudera.com>
AuthorDate: Tue Oct 29 17:09:26 2019 +0000
HADOOP-16669. TestRawLocalFileSystemContract.testPermission fails if no native library.
Contributed by Steve Loughran.
Change-Id: I622e36f17a63c775c5e33e93b8b26e461d0bc451
---
.../java/org/apache/hadoop/fs/TestRawLocalFileSystemContract.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestRawLocalFileSystemContract.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestRawLocalFileSystemContract.java
index 908e330..3892f16 100644
--- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestRawLocalFileSystemContract.java
+++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestRawLocalFileSystemContract.java
@@ -22,12 +22,14 @@ import java.io.File;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.test.GenericTestUtils;
import org.apache.hadoop.test.StatUtils;
+import org.apache.hadoop.util.NativeCodeLoader;
import org.apache.hadoop.util.Shell;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
+import static org.junit.Assume.assumeTrue;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -91,6 +93,8 @@ public class TestRawLocalFileSystemContract extends FileSystemContractBaseTest {
@Test
@SuppressWarnings("deprecation")
public void testPermission() throws Exception {
+ assumeTrue("No native library",
+ NativeCodeLoader.isNativeCodeLoaded());
Path testDir = getTestBaseDir();
String testFilename = "teststat2File";
Path path = new Path(testDir, testFilename);
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org