Use the Popen cleanup hack in more places in runxpcshelltests.py
Categories
(Testing :: XPCShell Harness, task)
Tracking
(firefox105 fixed)
| Tracking | Status | |
|---|---|---|
| firefox105 | --- | fixed |
People
(Reporter: mccr8, Assigned: mccr8)
References
Details
Attachments
(1 file)
To work around a Python bug that was fixed in 2019 but is still present in the version of Python we use on Windows 7, runxpcshelltests.py basically clears subprocess._cleanup before it runs Popen() in one place, and restores it afterwards. However, there are two other places in that file that call Popen(). With my patches in bug 1769791, we seem to hit this issue when running the XPCShell self-tests.
I have a patch to wrap up the "cleanup hack" into a little contextmanager thing which can be used for all 3 Popen calls and which will hopefully fix the issue for me.
| Assignee | ||
Comment 1•3 years ago
|
||
I found another reference to these self-tests failing with verify mode due to the popen issue. It is possible that my patch will fix that, but I'll leave it to somebody else to investigate if they want.
| Assignee | ||
Comment 2•3 years ago
|
||
| Assignee | ||
Comment 3•3 years ago
|
||
XPCShell tests look green on Win7 with this patch and my XUL changes. (They were always orange without this patch.)
Comment 5•3 years ago
|
||
| bugherder | ||
Description
•