# HG changeset patch
# User t_mrc-ct@users.sourceforge.jp
# Date 1404659509 -32400
# Branch GECKO3130_2014112716_RELBRANCH
# Node ID daa89f07dcb014e2612dfd868bc562ee34e4e99f
# Parent  53642b62b733257952daa0748c5dddb422bd1994
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;
   }
