-
Notifications
You must be signed in to change notification settings - Fork 217
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
Fix #11, Update OS_TimerSet to return OS_ERROR #19
Conversation
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.
Looks good to me
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.
Likely needs unit test update to cover this logic. Check if one of the test packages exercise this error, and if not add it.
See code below, ensure it covers and checks for the error case: osal/src/unit-test-coverage/shared/src/coveragetest-time.c Lines 153 to 181 in d0f1a39
|
update coverage test, unit test successful. Had to do some modification to the original unit test, all unit test cases where both start time and interval time = 0 are no longer valid because of the new condition in OS_TimerSet. Changed those conditions to start_time = o and interval_time =1 to make valid:
|
Fix code markup in readme
Describe the contribution
Update OS_TimerSet to return OS_ERROR when both parameters are zero.
Fix #11
Testing performed
Steps taken to test the contribution:
Expected behavior changes
System(s) tested on:
Contributor Info
Anh Van, NASA Goddard
Community contributors
You must attach a signed CLA (required for acceptance) or reference one already submitted