diff --git a/thpp/test/StorageTest.cpp b/thpp/test/StorageTest.cpp index 4ba6ef8..13a4063 100644 --- a/thpp/test/StorageTest.cpp +++ b/thpp/test/StorageTest.cpp @@ -61,7 +61,9 @@ TEST(Storage, CustomAllocator) { { auto storage = FloatStorage(thStorage); g_ptr = thStorage->data; +#ifndef NO_FOLLY auto buf = storage.getIOBuf(); +#endif THFloatStorage_free(thStorage); EXPECT_EQ(ctx.nFree, 0); } @@ -75,7 +77,9 @@ TEST(Storage, CustomAllocator) { { auto storage = FloatStorage(thStorage); g_ptr = thStorage->data; +#ifndef NO_FOLLY auto buf = storage.getIOBuf(); +#endif } EXPECT_EQ(ctx.nFree, 0); THFloatStorage_free(thStorage);