From 73dcc65ef647ea75e5b2dedb5924023fd124b9b2 Mon Sep 17 00:00:00 2001 From: Vikas Dhiman Date: Fri, 13 Jan 2017 17:07:47 -0500 Subject: [PATCH] Test getIOBuf only if FOLLY is present. No point testing it when the method is not present. Fixes build. --- thpp/test/StorageTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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);