Bug 786866 - export LD_PRELOAD for xpcshell tests on B2G, r=jgriffin, DONTBUILD because NPOTB
authorMihnea Dobrescu-Balaur <mbalaur@mozilla.com>
Wed, 29 Aug 2012 17:16:07 -0700
changeset 104283 6d818adcd747dbfdf38ea0b560a5f182ec668599
parent 104282 cd51f6ca80e276f149c64b6dde15101b26946c9a
child 104284 d14ceaf50295c55851edd6da34336ddc32f21d08
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersjgriffin, DONTBUILD
bugs786866
milestone18.0a1
Bug 786866 - export LD_PRELOAD for xpcshell tests on B2G, r=jgriffin, DONTBUILD because NPOTB
testing/xpcshell/runtestsb2g.py
--- a/testing/xpcshell/runtestsb2g.py
+++ b/testing/xpcshell/runtestsb2g.py
@@ -36,16 +36,17 @@ class B2GXPCShellRemote(XPCShellRemote):
     def pushLibs(self):
         if not self.options.use_device_libs:
             XPCShellRemote.pushLibs(self)
 
     # Overridden
     def setLD_LIBRARY_PATH(self, env):
         if self.options.use_device_libs:
             env['LD_LIBRARY_PATH'] = '/system/b2g'
+            env['LD_PRELOAD'] = '/system/b2g/libmozglue.so'
         else:
             XPCShellRemote.setLD_LIBRARY_PATH(self, env)
 
     # Overridden
     # This returns 1 even when tests pass - this is why it's switched to 0
     # https://bugzilla.mozilla.org/show_bug.cgi?id=773703
     def getReturnCode(self, proc):
 #        if self.shellReturnCode is not None: