From c7c89b16824ff9515c1b6ef6498fdacb2ad463da Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 19 Dec 2020 10:45:11 +0000 Subject: [PATCH] Updated test suite. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13964 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- test/rt/configuration.xml | 28 +++++++++++----------- test/rt/source/test/rt_test_sequence_008.c | 6 ++--- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/test/rt/configuration.xml b/test/rt/configuration.xml index 2bb47069d..f9375049c 100644 --- a/test/rt/configuration.xml +++ b/test/rt/configuration.xml @@ -1132,7 +1132,7 @@ test_assert(chThdGetPriorityX() == prio, "unexpected priority level");]]> prio += 2; +chThdGetSelfX()->hdr.pqueue.prio += 2; test_assert(chThdGetPriorityX() == prio + 2, "unexpected priority level");]]> @@ -1146,7 +1146,7 @@ test_assert(chThdGetPriorityX() == prio + 2, "unexpected priority level");]]> prio == prio + 2, "unexpected priority level"); +test_assert(chThdGetSelfX()->hdr.pqueue.prio == prio + 2, "unexpected priority level"); test_assert(chThdGetSelfX()->realprio == prio + 1, "unexpected returned real priority level");]]> @@ -1160,7 +1160,7 @@ test_assert(chThdGetSelfX()->realprio == prio + 1, "unexpected returned real pri prio == prio + 3, "unexpected priority level"); +test_assert(chThdGetSelfX()->hdr.pqueue.prio == prio + 3, "unexpected priority level"); test_assert(chThdGetSelfX()->realprio == prio + 3, "unexpected real priority level");]]> @@ -1173,7 +1173,7 @@ test_assert(chThdGetSelfX()->realprio == prio + 3, "unexpected real priority lev prio = prio; +chThdGetSelfX()->hdr.pqueue.prio = prio; chThdGetSelfX()->realprio = prio; chSysUnlock();]]> @@ -1475,7 +1475,7 @@ msg_t msg;]]> @@ -1492,7 +1492,7 @@ test_assert(sem1.cnt == 0, "counter not zero");]]> msg = chSemWaitTimeout(&sem1, TIME_MS2I(500)); test_wait_threads(); test_assert(msg == MSG_OK, "wrong wake-up message"); -test_assert(queue_isempty(&sem1.queue), "queue not empty"); +test_assert(ch_queue_isempty(&sem1.queue), "queue not empty"); test_assert(sem1.cnt == 0, "counter not zero");]]> @@ -1509,7 +1509,7 @@ for (i = 0; i < 5; i++) { test_emit_token('A' + i); msg = chSemWaitTimeout(&sem1, TIME_MS2I(50)); test_assert(msg == MSG_TIMEOUT, "wrong wake-up message"); - test_assert(queue_isempty(&sem1.queue), "queue not empty"); + test_assert(ch_queue_isempty(&sem1.queue), "queue not empty"); test_assert(sem1.cnt == 0, "counter not zero"); } test_assert_sequence("ABCDE", "invalid sequence"); @@ -1614,7 +1614,7 @@ test_assert_sequence("A", "invalid sequence");]]> @@ -1627,7 +1627,7 @@ test_assert(sem1.cnt == 0, "counter not zero");]]> @@ -2319,7 +2319,7 @@ test_assert(!b, "not locked");]]> +test_assert(ch_queue_isempty(&m1.queue), "queue not empty");]]> @@ -2348,7 +2348,7 @@ test_assert(!b, "not locked"); chMtxUnlockAll(); test_assert(m1.owner == NULL, "still owned"); -test_assert(queue_isempty(&m1.queue), "queue not empty");]]> +test_assert(ch_queue_isempty(&m1.queue), "queue not empty");]]> @@ -2444,7 +2444,7 @@ test_assert(m1.owner != NULL, "not owned");]]> +test_assert(ch_queue_isempty(&m1.queue), "queue not empty");]]> @@ -2477,7 +2477,7 @@ chSysLock(); chMtxUnlockAllS(); chSysUnlock(); test_assert(m1.owner == NULL, "still owned"); -test_assert(queue_isempty(&m1.queue), "queue not empty"); +test_assert(ch_queue_isempty(&m1.queue), "queue not empty"); test_assert(m1.cnt == 0, "invalid recursion counter");]]> @@ -2498,7 +2498,7 @@ test_assert(m1.owner != NULL, "not owned"); test_assert(m1.cnt == 2, "invalid recursion counter"); chMtxUnlockAll(); test_assert(m1.owner == NULL, "still owned"); -test_assert(queue_isempty(&m1.queue), "queue not empty"); +test_assert(ch_queue_isempty(&m1.queue), "queue not empty"); test_assert(m1.cnt == 0, "invalid recursion counter");]]> diff --git a/test/rt/source/test/rt_test_sequence_008.c b/test/rt/source/test/rt_test_sequence_008.c index c663ac46a..748525675 100644 --- a/test/rt/source/test/rt_test_sequence_008.c +++ b/test/rt/source/test/rt_test_sequence_008.c @@ -770,7 +770,7 @@ static void rt_test_008_006_execute(void) { { chMtxUnlock(&m1); test_assert(m1.owner == NULL, "still owned"); - test_assert(queue_isempty(&m1.queue), "queue not empty"); + test_assert(ch_queue_isempty(&m1.queue), "queue not empty"); } test_end_step(5); @@ -796,7 +796,7 @@ static void rt_test_008_006_execute(void) { chMtxUnlockAllS(); chSysUnlock(); test_assert(m1.owner == NULL, "still owned"); - test_assert(queue_isempty(&m1.queue), "queue not empty"); + test_assert(ch_queue_isempty(&m1.queue), "queue not empty"); test_assert(m1.cnt == 0, "invalid recursion counter"); } test_end_step(7); @@ -814,7 +814,7 @@ static void rt_test_008_006_execute(void) { test_assert(m1.cnt == 2, "invalid recursion counter"); chMtxUnlockAll(); test_assert(m1.owner == NULL, "still owned"); - test_assert(queue_isempty(&m1.queue), "queue not empty"); + test_assert(ch_queue_isempty(&m1.queue), "queue not empty"); test_assert(m1.cnt == 0, "invalid recursion counter"); } test_end_step(8);