-
Notifications
You must be signed in to change notification settings - Fork 306
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
DAOS-6732: Remove line of code that is not reached #4797
Conversation
This bug was identified by Coverity Signed-off-by: Marcela Rosales <marcela.a.rosales.jimenez@intel.com>
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.
LGTM. No errors found by checkpatch.
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.
What is the point of st at all here? I think we should probably take st as an argument to ts_cmd_run and pass it to the other routines. Either that or we should get rid of it altogether if it's not needed to pass it to subroutines for a given test.
It looks like there are two calls, one from cmocka and one not...we could pass NULL to the other one but just pass state to the cmocka version.
Test stage Functional_Hardware_Large completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-4797/1/execution/node/1529/log |
Signed-off-by: Marcela Rosales <marcela.a.rosales.jimenez@intel.com>
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.
LGTM. No errors found by checkpatch.
Thanks for your feedback @jolivier23. I just sent a patch removing the st fom the other functions because I don't think it is necessary to have it. I reviewed the cmocka documentation and |
Test stage Functional_Hardware_Small completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-4797/2/execution/node/1272/log |
Test stage Functional_Hardware_Medium completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-4797/2/execution/node/1301/log |
Test stage Functional_Hardware_Large completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-4797/2/execution/node/1393/log |
Test stage Functional on CentOS 7 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-4797/2/execution/node/1526/log |
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.
LGTM. No errors found by checkpatch.
src/vos/tests/evt_ctl.c
Outdated
@@ -121,7 +121,7 @@ static struct evt_desc_cbs ts_evt_desc_nofree_cbs = { | |||
}; | |||
|
|||
static void | |||
ts_open_create(void **state) | |||
ts_open_create() |
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.
should be ts_open_create(void)
Same comment for other functions definitions. This ensures a compiler error if user actually tries to pass a parameter.
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.
okay, I'm sending the patch
Signed-off-by: Marcela Rosales <marcela.a.rosales.jimenez@intel.com>
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.
LGTM. No errors found by checkpatch.
Test stage Scan CentOS 7 RPMs completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-4797/4/execution/node/1181/log |
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.
LGTM. No errors found by checkpatch.
This bug was identified by Coverity Signed-off-by: Marcela Rosales <marcela.a.rosales.jimenez@intel.com>
This bug was identified by Coverity
Signed-off-by: Marcela Rosales marcela.a.rosales.jimenez@intel.com