# HG changeset patch
# User t_mrc-ct@users.sourceforge.jp
# Date 1404659509 -32400
# Branch GECKO310b2_2014070404_RELBRANCH
# Node ID 316c53b9b281acba11a73536f12cb48c0631af7a
# Parent  f39c0bf96d9ad930562b9c58da25df670c31de36
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;
   }
