Open Bug 1648981 Opened 5 years ago Updated 5 years ago

Gtest (TestUCRTDepends.AppDir) fails even with a freshly cloned repo and install of Mozilla Build

Categories

(Testing :: GTest, defect, P3)

defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: pctopgs, Unassigned)

Details

Attachments

(1 obsolete file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36 Edg/83.0.478.56

Steps to reproduce:

I'm a beginner so I thought I might be doing something wrong here. When I posted this in riot, they suggest that I submit a bug report.

Windows 10 64 bit
16.0GB Memory

Open MozillaBuild, clone the mozilla-central repo and run gtest without touching any code.
hg clone https://hg.mozilla.org/mozilla-central/
cd mozilla-central
./mach gtest

Actual results:

[----------] Global test environment tear-down
[==========] 5494 tests from 389 test cases ran. (696132 ms total)
[ PASSED ] 5493 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] TestUCRTDepends.AppDir

If I do
./mach gtest TestUCRTDepends.AppDir

I get:
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from TestUCRTDepends
[ RUN ] TestUCRTDepends.AppDir
d:/dev/mozilla-source/mozilla-central/toolkit/library/gtest/TestUCRTDepends.cpp(56): error: Expected: (hFind) != (((HANDLE)(LONG_PTR)-1)), actual: FFFFFFFFFFFFFFFF vs FFFFFFFFFFFFFFFF
[ FAILED ] TestUCRTDepends.AppDir (1 ms)
[----------] 1 test from TestUCRTDepends (2 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (8 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] TestUCRTDepends.AppDir

Expected results:

I thought everything should pass the tests.

Component: General → GTest
Product: Core → Testing
Assignee: nobody → pctopgs

How is the patch related to this bug report. Am I missing something obvious?

Flags: needinfo?(pctopgs)

(In reply to Olli Pettay [:smaug] from comment #2)

How is the patch related to this bug report. Am I missing something obvious?

Oh crud I put the wrong bug number! I meant to put Bug 1265275. How do I change it to the correct bug number?

Flags: needinfo?(pctopgs)

Comment on attachment 9160251 [details]
Bug 1648981 - ran mochitests after removing 'using namespace mozilla;' and 'using namespace mozilla::dom;' from PresentationCallbacks.cpp

Revision D81633 was moved to bug 1265275. Setting attachment 9160251 [details] to obsolete.

Attachment #9160251 - Attachment is obsolete: true
Assignee: pctopgs → nobody

The severity field is not set for this bug.
:ahal, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(ahal)
Severity: -- → S3
Flags: needinfo?(ahal)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: