Closed Bug 1263506 Opened 10 years ago Closed 10 years ago

GeckoMediaPlugins gtests fail on Windows

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox47 fixed, firefox48 fixed)

RESOLVED FIXED
mozilla48
Tracking Status
firefox47 --- fixed
firefox48 --- fixed

People

(Reporter: cpearce, Assigned: cpearce)

References

Details

Attachments

(1 file)

The GeckoMediaPlugins gtests fail on Windows, with the following warnings: Running GTest tests... [6296] WARNING: NS_ENSURE_TRUE(greBinD) failed: file c:\Users\cpearce\src\mozilla\purple\objdir\dist\include\testing/TestHarness.h, line 255 [6296] WARNING: NS_ENSURE_TRUE(greD) failed: file c:\Users\cpearce\src\mozilla\purple\objdir\dist\include\testing/TestHarness.h, line 248 Note: Google Test filter = *GeckoMediaPlugins* [==========] Running 22 tests from 1 test case. [----------] Global test environment set-up. [----------] 22 tests from GeckoMediaPlugins [ RUN ] GeckoMediaPlugins.GMPTestCodec [6296] WARNING: 'NS_FAILED(rv)', file c:/Users/cpearce/src/mozilla/purple/dom/media/gmp/GMPServiceParent.cpp, line 994 [6296] WARNING: 'NS_FAILED(rv)', file c:/Users/cpearce/src/mozilla/purple/dom/media/gmp/GMPServiceParent.cpp, line 994 The warning GMPServiceParent.cpp, line 994 is a NS_NewLocalFile failure, due to the MOZ_GMP_PATH environment variable which the GMP gtests rely on containing Unix dir separators. NS_NewLocalFile on Windows can only handle Windows dir separators. MOZ_GMP_PATH needs to be normalized to Windows dir separators on Windows.
Without this, the GeckoMediaPlugin gtests fail, as the GMP stack is unable to load GMPs from disk. MozReview-Commit-ID: GGXdm2L5IF9
Attachment #8739835 - Flags: review?(mh+mozilla)
Component: mach → Build Config
Attachment #8739835 - Flags: review?(mh+mozilla) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
Comment on attachment 8739835 [details] [diff] [review] Ensure MOZ_GMP_PATH in gtests always has native dir separators Approval Request Comment [Feature/regressing bug #]: GeckoMediaPlugins' gtests on Windows [User impact if declined]: Negligible user impact, but improved reliability of Gecko Media Plugins' gtests. Without this patch the GMP gtests don't work on my local Windows machine. Quite frankly, I don't know how gtests on Windows in our automation are working at all without this patch! [Describe test coverage new/current, TreeHerder]: We have a number of gtests that I don't know how they're working without this change. [Risks and why]: None; build/automation only change. [String/UUID change made/needed]: None.
Attachment #8739835 - Flags: approval-mozilla-aurora?
Comment on attachment 8739835 [details] [diff] [review] Ensure MOZ_GMP_PATH in gtests always has native dir separators NPOTB we ship, Aurora47+
Attachment #8739835 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Hi Ryan, Wes: Would you be able to address the concern (on whether gmp tests are running on windows at all) that CPearce has mentioned in comment 4? Is this something that is already known? Thanks!
Flags: needinfo?(wkocher)
Flags: needinfo?(ryanvm)
I see a number of "WARNING:"s in that section of the gtest log, but not those particular ones. Unsure what exactly that means. http://archive.mozilla.org/pub/firefox/tinderbox-builds/mozilla-aurora-win32-debug/1461075033/mozilla-aurora_win7-ix-debug_test-gtest-bm127-tests1-windows-build0.txt.gz
Flags: needinfo?(wkocher)
Flags: needinfo?(ryanvm)
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: