Repository navigation
Conversation
Check metrics file removal in the shared test helper so unexpected cleanup failures fail the test while an absent file remains harmless. Move the completed antenna PinCheck into its collection to avoid an unnecessary deep copy. These address Coverity CIDs 1688344 and 1688333 introduced by the antenna C++ test PR. Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Contributor
There was a problem hiding this comment.
Code Review
This pull request optimizes pin handling in TestAntennaReport.cpp using std::move and adds error checking for file removal in logger_checks.cpp. The review feedback recommends replacing the C-style std::remove and errno checks with modern C++20 std::filesystem::remove and std::error_code for cleaner and more idiomatic error handling.
Use the error-code overload of filesystem::remove in MetricsCapture. Allow an absent metrics file while reporting other cleanup errors with system details, and remove the unused C-style removal headers. Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Bring in master at 4ba43e1, including the current sv-elab dependency. This removes the stale sv-lang archive dependency from the test PR. Preserve the metrics cleanup and antenna test changes after the merge. Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Coverity Defect Log
Solution
CHECKED_RETURNCOPY_INSTEAD_OF_MOVERelated