M_ADD_LIBRARY_GTEST(memory_usage_test
        memory_usage_test.cc)
# The memory usage test doesn't compile under ThreadSanitizer
# / AddressSanitizer as they both try to override the default
# 'new' operator so don't try to compile the test.
IF (NOT (CB_THREADSANITIZER OR CB_ADDRESSSANITIZER))
    M_ADD_LIBRARY_GTEST(memory_usage_test
            memory_usage_test.cc)
ENDIF()

Disable memory usage test compilation under TSan/ASan
Disable memory usage test compilation under TSan/ASan

The memory usage test doesn't compile under ThreadSanitizer /
AddressSanitizer as they both try to override the default 'new'
operator so don't try to compile the test.

Change-Id: Ia89c0e730f810736181c80641a0c98c751b37578
Reviewed-on: http://review.couchbase.org/66311
Tested-by: buildbot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Reviewed-by: Will Gardner <cbd6f5d9092d9ef7d5c0510d53bba134b22c02f2@couchbase.com>
