Преглед изворни кода

HDFS-11950. Disable libhdfs zerocopy test on Mac. Contributed by Akira Ajisaka.

Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
(cherry picked from commit a95e87d827381a7f87c01f0befc2475f9478e63b)
(cherry picked from commit f68099aa1316f34591c757bcf4198a3a3c7f691a)
(cherry picked from commit 3d1d8623a11b72c7939d6500537be5fd6565d4d6)
Akira Ajisaka пре 5 година
родитељ
комит
010a99104b

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/CMakeLists.txt

@@ -64,7 +64,7 @@ build_libhdfs_test(test_libhdfs_threaded hdfs_static expect.c test_libhdfs_threa
 link_libhdfs_test(test_libhdfs_threaded hdfs_static native_mini_dfs)
 link_libhdfs_test(test_libhdfs_threaded hdfs_static native_mini_dfs)
 add_libhdfs_test(test_libhdfs_threaded hdfs_static)
 add_libhdfs_test(test_libhdfs_threaded hdfs_static)
 
 
-if (NOT WIN32)
+if (NOT WIN32 AND NOT APPLE)
 build_libhdfs_test(test_libhdfs_zerocopy hdfs_static expect.c test_libhdfs_zerocopy.c)
 build_libhdfs_test(test_libhdfs_zerocopy hdfs_static expect.c test_libhdfs_zerocopy.c)
 link_libhdfs_test(test_libhdfs_zerocopy hdfs_static native_mini_dfs ${OS_LINK_LIBRARIES})
 link_libhdfs_test(test_libhdfs_zerocopy hdfs_static native_mini_dfs ${OS_LINK_LIBRARIES})
 add_libhdfs_test(test_libhdfs_zerocopy hdfs_static)
 add_libhdfs_test(test_libhdfs_zerocopy hdfs_static)