diff options
Diffstat (limited to 'test/testevt.c')
-rw-r--r-- | test/testevt.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/testevt.c b/test/testevt.c index 89c5cf114..7af8b7b73 100644 --- a/test/testevt.c +++ b/test/testevt.c @@ -55,20 +55,20 @@ static void evt1_execute(void) { */
chEvtPend(5);
m = chEvtWaitOne(ALL_EVENTS);
- test_assert(m == 1, "chEvtWaitOne() error");
+ test_assert(m == 1, "#1"); /* Single bit error.*/
m = chEvtWaitOne(ALL_EVENTS);
- test_assert(m == 4, "chEvtWaitOne() error");
+ test_assert(m == 4, "#2"); /* Single bit error.*/
m = chEvtClear(0);
- test_assert(m == 0, "stuck event");
+ test_assert(m == 0, "#3"); /* Stuck event.*/
/*
* Test on chEvtWaitAny().
*/
chEvtPend(5);
m = chEvtWaitAny(ALL_EVENTS);
- test_assert(m == 5, "chEvtWaitAny() error");
+ test_assert(m == 5, "#4"); /* Unexpected pending.*/
m = chEvtClear(0);
- test_assert(m == 0, "stuck event");
+ test_assert(m == 0, "#5"); /* Stuck event.*/
/*
* Test on chEvtWaitAll(), chEvtRegisterMask() and chEvtUnregister().
@@ -82,13 +82,13 @@ static void evt1_execute(void) { m = chEvtWaitAll(5);
test_assert_time_window(target_time, target_time + ALLOWED_DELAY);
m = chEvtClear(0);
- test_assert(m == 0, "stuck event");
+ test_assert(m == 0, "#6"); /* Stuck event.*/
test_wait_threads();
chEvtUnregister(&es1, &el1);
chEvtUnregister(&es2, &el2);
- test_assert(!chEvtIsListening(&es1), "stuck listener");
- test_assert(!chEvtIsListening(&es2), "stuck listener");
+ test_assert(!chEvtIsListening(&es1), "#7"); /* Stuck listener.*/
+ test_assert(!chEvtIsListening(&es2), "#8"); /* Stuck listener.*/
}
const struct testcase testevt1 = {
|