-
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 #196, Fix timer-test to be able to use OS_MAX_TIMERS value #490
Fix #196, Fix timer-test to be able to use OS_MAX_TIMERS value #490
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.
Minor change request.
Just to confirm - did you build and run this test with OS_MAX_TIMERS set to something less than 4 to confirm it works as expected?
src/tests/timer-test/timer-test.c
Outdated
void TimerTestSetup(void); | ||
void TimerTestTask(void); | ||
void TimerTestCheck(void); | ||
|
||
OS_time_t StartTime; | ||
OS_time_t EndTime; | ||
uint32 TimerStart[NUMBER_OF_TIMERS]; | ||
uint32 TimerInterval[NUMBER_OF_TIMERS]; | ||
|
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.
This looks odd - variable declared without initializer and then defined with initializer. Possibly a remnant change? Should remove this addition.
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.
This was a typo. Fixed.
@jphickey Yes, I tested it with less than 4 timers, etc. and it worked as expected. I'm pushing the other change now. |
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.
OK looks good.
CCB-20200624 APPROVED |
Integration Candidate 20200121
Fix #196, Fix timer-test to be able to use OS_MAX_TIMERS value
Describe the contribution
Changed timer-test to be able to use OS_MAX_TIMERS value on top of the hard-coded NUMBER_OF_TIMERS value. This will allow the test to be functional even if the OS_MAX_TIMERS value is reconfigured.
Testing performed
Steps taken to test the contribution:
System(s) tested on
cFS Dev Server
OS: Ubuntu 18.04
Versions: OSAL 5.0.11.0
Contributor Info - All information REQUIRED for consideration of pull request
Yasir Majeed Khan
NASA GSFC/Emergent Space