diff options
Diffstat (limited to 'src/tests/debugallocation_test.cc')
-rw-r--r-- | src/tests/debugallocation_test.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/debugallocation_test.cc b/src/tests/debugallocation_test.cc index beeb4cf..8e14830 100644 --- a/src/tests/debugallocation_test.cc +++ b/src/tests/debugallocation_test.cc @@ -298,6 +298,7 @@ TEST(DebugAllocationTest, HugeAlloc) { #endif } +#ifdef HAVE_MEMALIGN // based on test program contributed by mikesart@gmail.com aka // mikesart@valvesoftware.com. See issue-464. TEST(DebugAllocationTest, ReallocAfterMemalloc) { @@ -313,6 +314,7 @@ TEST(DebugAllocationTest, ReallocAfterMemalloc) { int rv = memcmp(stuff, p, sizeof(stuff)); EXPECT_EQ(rv, 0); } +#endif int main(int argc, char** argv) { // If you run without args, we run the non-death parts of the test. |