# HG changeset patch
# User t_mrc-ct@users.sourceforge.jp
# Date 1404659509 -32400
# Branch GECKO3111_2014090813_RELBRANCH
# Node ID 3a68a79c13bc52e774c9a08dafaaa08f449b69a7
# Parent  be5f116a171d320b8d9c183d53a1c92700a37883
fix enable-tests build error

diff --git a/memory/mozalloc/tests/TestVolatileBuffer.cpp b/memory/mozalloc/tests/TestVolatileBuffer.cpp
--- a/memory/mozalloc/tests/TestVolatileBuffer.cpp
+++ b/memory/mozalloc/tests/TestVolatileBuffer.cpp
@@ -102,19 +102,22 @@
     fail("Failed to open ashmem device");
     return 1;
   }
   if (ioctl(fd, ASHMEM_PURGE_ALL_CACHES, NULL) < 0) {
     fail("Failed to purge ashmem caches");
     return 1;
   }
 #elif defined(XP_DARWIN)
+/* need to implement vm_purgeable_object_purge_all()
   int state;
   vm_purgable_control(mach_task_self(), (vm_address_t)NULL,
                       VM_PURGABLE_PURGE_ALL, &state);
+*/
+  return 0;
 #else
   return 0;
 #endif
 
   if (!buf->NonHeapSizeOfExcludingThis()) {
     fail("Buffer should not be allocated on heap");
     return 1;
   }
