Update googletest to 1.11.0
Categories
(NSS :: Test, enhancement, P1)
Tracking
(Not tracked)
People
(Reporter: johny, Assigned: johny)
References
()
Details
Attachments
(1 file)
Steps to reproduce:
Running the NSS build with gcc 11.1.0 results in the error described in this issue in the googletest repository:
https://github.com/google/googletest/issues/3219
Expected results:
I suggest updating the bundled googletest library to 1.11.0 which has the fix for this issue. I will send a patch soon.
Assignee | ||
Comment 1•3 years ago
|
||
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Comment 2•3 years ago
|
||
Comment 3•3 years ago
|
||
Thank you Ján!
Updated•3 years ago
|
Comment 4•3 years ago
|
||
Backed out for CI failures.
https://hg.mozilla.org/projects/nss/rev/1831460a6f34324c8a03d78e7f4a4cf2164353c0
Comment 5•3 years ago
•
|
||
nss-try before the backout:
https://treeherder.mozilla.org/jobs?repo=nss-try&revision=0ca2421af398589a32036dbc0bf547a74cd9b729
nss-try for the backout:
https://treeherder.mozilla.org/jobs?repo=nss-try&revision=84019f428138de0ea339e73ba653787f4c25e6d5
Looks like a few changes are needed... Ján, could you have a look?
I suggest keeping the current commit and add one on top with the changes to NSS.
(We can push to the CI for you if you need to test changes.)
Comment 6•3 years ago
|
||
I took a brief look at this and there is one easy problem and one hard one.
The easy one is that we instantiate tests for TlsAgentTestClient without defining a single TEST_P() for that class. Removing the instantiation works fine.
The hard one is that googletest doesn't compile with g++ 4.8. From what I can tell on their status page, c++11 was in the development process when gcc 4.8 shipped, so we've been coasting on that. I think that the right answer is to cut the C++ tests from our gcc 4.8 builds. We get most of the value from those tests running under a modern compiler, so losing this won't hurt that much. I'm happy to fix that up.
Comment 7•3 years ago
|
||
https://phabricator.services.mozilla.com/D131425?vs=518757&id=522756 shows the changes I needed to make
https://treeherder.mozilla.org/#/jobs?repo=nss-try&revision=afcb7b76e184 is the try run
Assignee | ||
Comment 8•3 years ago
|
||
Any movement on this? Still can't work on the library with modern gcc.
Comment 9•3 years ago
|
||
Hi Ján,
Sorry this was left on the backburner after bouncing out due to CI failures. I've rebased your changes onto the latest NSS, fixed the issue and added a CI target for gcc-11. We should get your changes into the release next week.
Best,
Dennis
Comment 10•3 years ago
|
||
Description
•