diff options
Diffstat (limited to 'test/testevt.c')
-rw-r--r-- | test/testevt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/testevt.c b/test/testevt.c index 188a6fe2e..80bc18ae7 100644 --- a/test/testevt.c +++ b/test/testevt.c @@ -88,7 +88,7 @@ static void evt1_execute(void) { /*
* Testing chEvtRegisterMask() and chEvtUnregister().
*/
- chEvtInit(&es1);
+ chEvtObjectInit(&es1);
chEvtRegisterMask(&es1, &el1, 1);
chEvtRegisterMask(&es1, &el2, 2);
test_assert(1, chEvtIsListeningI(&es1), "no listener");
@@ -202,8 +202,8 @@ static void evt2_execute(void) { /*
* Test on chEvtWaitAll().
*/
- chEvtInit(&es1);
- chEvtInit(&es2);
+ chEvtObjectInit(&es1);
+ chEvtObjectInit(&es2);
chEvtRegisterMask(&es1, &el1, 1);
chEvtRegisterMask(&es2, &el2, 4);
test_wait_tick();
|