Disable some unit tests on Darwin.
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+if(NOT CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin")
+set(STAGING_VESPALIB_DIRECTIO_TESTDIR src/tests/directio)
+set(STAGING_VESPALIB_PROCESS_MEMORY_STATS_TESTDIR src/tests/util/process_memory_stats)
+endif()
+
vespa_define_module(
DEPENDS
fastos
@@ -12,7 +17,7 @@ vespa_define_module(
src/tests/bits
src/tests/clock
src/tests/crc
- src/tests/directio
+ ${STAGING_VESPALIB_DIRECTIO_TESTDIR}
src/tests/encoding/base64
src/tests/fileheader
src/tests/floatingpointtype
@@ -33,7 +38,7 @@ vespa_define_module(
src/tests/sequencedtaskexecutor
src/tests/singleexecutor
src/tests/timer
- src/tests/util/process_memory_stats
+ ${STAGING_VESPALIB_PROCESS_MEMORY_STATS_TESTDIR}
src/tests/xmlserializable
LIBS
