You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by Michal Vala <mv...@redhat.com> on 2018/10/12 12:35:49 UTC

how to ignore tests with natives - TestRawLocalFileSystemContract#testPermission error

Hi,

TestRawLocalFileSystemContract#testPermission fails with
UnsatisfiedLinkError, even if I'm running with `./mvnw test
-Drequire.test.libhadoop=false`. From code it's clear that there is no
condition whether native code is loaded and it's called all the time
[1].

Shouldn't there be a condition that check `require.test.libhadoop` and
ignore the test if `false`? As in TestNativeCodeLoader[2]. Or is there
any other way how to run all tests without native parts?

Thanks!

[1] -
https://github.com/apache/hadoop/blob/a55d6bba71c81c1c4e9d8cd11f55c78f10a548b0/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestRawLocalFileSystemContract.java#L112
[2] -
https://github.com/apache/hadoop/blob/a55d6bba71c81c1c4e9d8cd11f55c78f10a548b0/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/TestNativeCodeLoader.java#L43

-- 
Michal Vala
OpenJDK QE | Red Hat Czech

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org