Closed Bug 944678 Opened 12 years ago Closed 12 years ago

"Couldn't load XPCOM" when running mach gtest

Categories

(Firefox Build System :: General, defect)

x86_64
Windows 8.1
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 883339

People

(Reporter: jkitch, Unassigned)

Details

I am unable to run gtests under Windows (using the latest unpatched mozilla-central). When I run "mach gtest" all that happens is that a dialogue appears saying "Couldn't load XPCOM". The build is otherwise successful, as Firefox will launch when called directly. "mach gtest" console output: 0:01.59 C:/mozilla-build/msys/bin/sh.exe -c c:/mozilla-build/python/python.exe c:/mozilla-central2/build/pymake/make.py -C testing/gtest -j2 -s -w gtest 0:02.17 c:\mozilla-central2\obj-i686-pc-mingw32\dist\bin\firefox.exe -unittest My .mozconfig: ac_add_options --disable-optimize ac_add_options --enable-debug ac_add_options --without-intl-api ac_add_options --enable-test ac_add_options --enable-gtest Compilation environment: Windows 8.1 64 bit Visual Studio 2012 Update 4.
Component: General → Build Config
Product: Testing → Core
You typically see this error when the build is busted. Can you run xpcshell.exe or firefox.exe without error?
Flags: needinfo?(jkitch.bug)
firefox.exe and xpcshell.exe launch normally and I can run mochitests and reftests without issue.
Flags: needinfo?(jkitch.bug)
Benoit: Anything ring a bell?
Flags: needinfo?(bgirard)
Yes, gtest isn't supported on windows. Typically it fails because of metro linking issues.
Flags: needinfo?(bgirard)
I should say our gtest hook up. We just need to solve the build problems.
Ah. I was aware that it wouldn't work with Metro, I was just hoping that it would work with Metro disabled (at least I think it is disabled. Metro still requires --enable-metro to build, doesn't it?)
It used to work on non metro but because it doesn't run on integration I'm not surprised it broke =\
With the patch from bug 883339, the error message no longer appears and "mach gtest" actually runs tests.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.