Repository navigation
TEST/COVERITY: Gtest fixes for Coverity 2026.3.0 Upgrade #12177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -915,7 +915,7 @@ UCS_TEST_F(test_topo, sibling) { | |
| auto gpu = m_gpus[0]; | ||
| if (!sibling_dma.empty()) { | ||
| dma = sibling_dma; | ||
| gpu = sibling_gpu; | ||
| gpu = std::move(sibling_gpu); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor: can we keep this a copy?
william-gallagher-nv marked this conversation as resolved.
Resolved
|
||
| UCS_TEST_MESSAGE << "Found sibling " | ||
| << "dma=" << dma << " gpu=" << gpu; | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: the
std::vectorparameter is built from aninitializer_list, whose elements are const, so eachshared_ptris still copied into the vector - the move here only clearsperf1/perf2. Same at line 1758.