Closed Bug 1236717 Opened 8 years ago Closed 1 month ago

Run IPDL C++ unit tests by default or remove them

Categories

(Core :: IPC, defect, P3)

defect

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox46 --- wontfix
firefox-esr115 --- wontfix
firefox124 --- wontfix
firefox125 --- wontfix
firefox126 --- fixed

People

(Reporter: jld, Assigned: afranchuk)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Currently we're not building or running IPDL unit tests by default, mainly because they're linked into libxul (they use non-exported symbols) and not useful in a normal build.

Bug 1236635 comment #3 suggests they could be enabled in debug builds; making those slightly larger isn't a problem.

Also, we already have libxul-gtest for similar reasons — it's not linked until gtests are run (which we do, on automation) because the link step is slow and memory-intensive, but the gtests are compiled by default in the normal build.  We probably wouldn't want two of those, but maybe making the IPDL tests part of the gtests would be feasible.
It seems to me IPDL tests fails on Windows... And I guess it fails everywhere else, too...
Priority: -- → P2
I think we should make a decision here: either we figure out how to run these in automation or we remove them. Having tests in the tree that don't get run doesn't add much value. They also are probably broken, as bugs like bug 1319914 and bug 1319912 show.
At some point we're hoping to move away from the make backend, so this stuff either needs to get moved to moz.build or it will go away:
https://hg.mozilla.org/mozilla-central/file/371e44e0034771ec8a5ac3c5a6518ef608227b99/ipc/ipdl/test/cxx/Makefile.in
Blocks: nomakefiles
Summary: Run IPDL unit tests by default → Run IPDL C++ unit tests by default or remove them
Priority: P2 → P3
OS: Unspecified → All
Hardware: Unspecified → All
See Also: → 1521003
Severity: normal → S3
Assignee: nobody → afranchuk

Now that bug 1751995 is landed, we can remove the cxx test directory.

The tests we want to keep have been migrated to gtests and are run by
default.

Pushed by afranchuk@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bbe9914bc4cd
Remove unused/unmigrated IPDL tests r=ipc-reviewers,nika
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: