We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Unit test Test_OS_ConvertToArrayIndex implements the following assertion:
Test_OS_ConvertToArrayIndex
osal/src/unit-test-coverage/shared/src/coveragetest-idmap.c
Lines 610 to 611 in 7d9c4c8
This is a tautological assertion as it compares local_idx1 with itself.
local_idx1
To Reproduce N/A (code analysis)
Expected behavior local_idx1 should be compared with local_idx2:
local_idx2
UtAssert_True(local_idx1 == local_idx2, "local_idx1 (%lu) == local_idx2 (%lu)", (unsigned long)local_idx1, (unsigned long)local_idx2);
Code snips See above.
System observed on: N/A (code analysis)
Additional context N/A
Reporter Info Guillaume Lethuillier - Personal
The text was updated successfully, but these errors were encountered:
@yammajamma - want to take this one?
Sorry, something went wrong.
@skliper Yes, I can take this one.
Merge pull request #428 from yammajamma/fix-425-Tautological-Assertio…
f31e2d9
…n-Fix Fix #425, Correct Test_OS_ConvertToArrayIndex assertion typo
eb0230f
Fix #425, Correct Test_OS_ConverToArrayIndex assertion typo
e0c8fbf
Fix nasa#425, update cppcheck
ff54fc3
Merge pull request nasa#432 from avan989/cppcheck_12_12_2019
b8a323c
yammajamma
Successfully merging a pull request may close this issue.
Describe the bug
Unit test
Test_OS_ConvertToArrayIndex
implements the following assertion:osal/src/unit-test-coverage/shared/src/coveragetest-idmap.c
Lines 610 to 611 in 7d9c4c8
This is a tautological assertion as it compares
local_idx1
with itself.To Reproduce
N/A (code analysis)
Expected behavior
local_idx1
should be compared withlocal_idx2
:Code snips
See above.
System observed on:
N/A (code analysis)
Additional context
N/A
Reporter Info
Guillaume Lethuillier - Personal
The text was updated successfully, but these errors were encountered: