Modify ticker_init_test() to be consistent with the new requirement.

pull/7009/head
Przemyslaw Stekiel 2018-01-19 08:20:50 +01:00 committed by Bartek Szatkowski
parent a8eee0fb1a
commit 1bd2e517a0
2 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ void wait_cycles(volatile unsigned int cycles)
}
/* Test that ticker_init can be called multiple times and
* ticker_init resets the internal count and disables the ticker interrupt.
* ticker_init allows the ticker to keep counting and disables the ticker interrupt.
*/
void ticker_init_test()
{
@ -118,7 +118,7 @@ void ticker_init_test()
}
TEST_ASSERT(intf->read() >= (ticks_start + 2 * TICKER_INT_VAL));
TEST_ASSERT(ticks_start > ticks_after_reinit);
TEST_ASSERT(ticks_start <= ticks_after_reinit);
TEST_ASSERT_EQUAL(0, intFlag);
}

View File

@ -32,7 +32,7 @@ extern "C" {
*
* Given ticker is initialised and interrupt is set.
* When ticker is re-initialised.
* Then ticker resets the internal count and disables the ticker interrupt.
* Then ticker keeps counting and disables the ticker interrupt.
*/
void ticker_init_test(void);