# HG changeset patch
# User t_mrc-ct@users.sourceforge.jp
# Date 1404659509 -32400
#      Mon Jul 07 00:11:49 2014 +0900
# Branch GECKO3180_2015071409_RELBRANCH
# Node ID 9b5b46796fcdb9183ff5b3547ab673992744fb61
# Parent  a4cb28bb3bd55f1e0b31ad4794279d595929ed43
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;
   }
