Closed Bug 1091608 Opened 10 years ago Closed 10 years ago

|mach gtest| does not display the test result at all

Categories

(Toolkit :: Startup and Profile System, defect)

x86_64
Windows 8.1
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla36

People

(Reporter: emk, Assigned: emk)

Details

Attachments

(1 file)

Steps to reproduce:
  mach gtest

Actual result:
xul.dll will be relinked, but no further output after the following line:
 0:59.51 g:\m\mozilla-central\obj-i686-pc-mingw32\dist\bin\firefox.exe -unittest

Expected result:
The test result should be displayed.

|mozmake -C obj-i686-pc-mingw32/testing/gtest/| check works, but it does not relink xul.dll automatically. My workaround is |mach gtest| then |mozmake -C .../gtest/ check|.
  MOZ_RUN_GTEST=1 obj-i686-pc-mingw32/dist/bin/firefox.exe -unittest
had no display either, but
  MOZ_RUN_GTEST=1 obj-i686-pc-mingw32/dist/bin/firefox.exe -unittest | cat
worked.
Oh, this is probably just another manifestation of the "Windows console doesn't attach" problem. If you pipe stdout it works around it. Presumably running make check is piping the output but the mach command isn't.
|make check| uses rungtest.py. Bug 1050878 will help.
Depends on: 1050878
I don't think bug 787313 is a problem for the gtest mode.
The gtest mode is itself opt-in, is disabled in the shipped binaries, and will not even create a window.
I also fixed a bug that the -attach-console option didn't work correctly.
Assignee: nobody → VYV03354
Status: NEW → ASSIGNED
Attachment #8515027 - Flags: review?(ted)
Component: mach → Startup and Profile System
No longer depends on: 1050878
Product: Core → Toolkit
Try result:
https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=74710eb67527
(gtest is running under "B".)
Comment on attachment 8515027 [details] [diff] [review]
Attach the console if the process is running the GTest

Review of attachment 8515027 [details] [diff] [review]:
-----------------------------------------------------------------

This makes sense, thanks.
Attachment #8515027 - Flags: review?(ted) → review+
https://hg.mozilla.org/mozilla-central/rev/8d2c268b9063
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: