From eb6b6685f09fbc4822492a1db9eaa367f46c657c Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Mon, 16 Oct 2017 15:09:11 +0000 Subject: Enhancements in the test engine, not finished. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10835 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/nil/.cproject | 2 +- test/nil/configuration.xml | 749 +++++++++++++++++++++++---------------------- 2 files changed, 377 insertions(+), 374 deletions(-) (limited to 'test/nil') diff --git a/test/nil/.cproject b/test/nil/.cproject index a3d27ffcd..d3500207c 100644 --- a/test/nil/.cproject +++ b/test/nil/.cproject @@ -36,8 +36,8 @@ - + diff --git a/test/nil/configuration.xml b/test/nil/configuration.xml index c62e00a37..c808728ae 100644 --- a/test/nil/configuration.xml +++ b/test/nil/configuration.xml @@ -10,20 +10,20 @@ - @@ -31,69 +31,72 @@ + + nil_ + - - @@ -145,20 +148,20 @@ THD_FUNCTION(test_support, arg) { - @@ -194,53 +197,53 @@ test_println("");]]> - @@ -295,8 +298,8 @@ test_println("");]]> - @@ -332,10 +335,10 @@ while (time == chVTGetSystemTimeX()) { - @@ -347,10 +350,10 @@ test_assert_time_window(time + 100, - @@ -362,10 +365,10 @@ test_assert_time_window(time + US2ST(100000), - @@ -377,10 +380,10 @@ test_assert_time_window(time + MS2ST(100), - @@ -392,10 +395,10 @@ test_assert_time_window(time + S2ST(1), - @@ -417,8 +420,8 @@ test_assert_time_window(time + 100, CH_CFG_USE_SEMAPHORES - @@ -452,10 +455,10 @@ static semaphore_t sem1;]]> - @@ -467,7 +470,7 @@ test_assert(MSG_OK == msg, "wrong returned message");]]> - @@ -479,7 +482,7 @@ test_assert_lock(chSemGetCounterI(&sem1) == 1, "wrong counter value");]]> - @@ -515,10 +518,10 @@ test_assert_lock(chSemGetCounterI(&sem1) == 2, "wrong counter value");]]> - @@ -530,10 +533,10 @@ test_assert(MSG_OK == msg, "wrong returned message");]]> - @@ -557,7 +560,7 @@ test_assert(MSG_RESET == msg, "wrong returned message");]]> - @@ -570,12 +573,12 @@ msg_t msg;]]> - @@ -587,12 +590,12 @@ test_assert(MSG_TIMEOUT == msg, "wrong timeout message");]]> - @@ -635,7 +638,7 @@ test_assert(MSG_TIMEOUT == msg, "wrong timeout message");]]> - @@ -648,10 +651,10 @@ msg_t msg;]]> - @@ -663,14 +666,14 @@ test_assert(MSG_OK == msg,"wrong returned message");]]> - @@ -694,7 +697,7 @@ test_assert(MSG_TIMEOUT == msg, "wrong returned message");]]> - @@ -707,10 +710,10 @@ eventmask_t events;]]> - @@ -722,10 +725,10 @@ test_assert((eventmask_t)0x55 == events, "wrong events mask");]]> - epmask = 0; -events = chEvtWaitAnyTimeout(ALL_EVENTS, MS2ST(1000)); -test_assert((eventmask_t)0 != events, "timed out"); + epmask = 0; +events = chEvtWaitAnyTimeout(ALL_EVENTS, MS2ST(1000)); +test_assert((eventmask_t)0 != events, "timed out"); test_assert((eventmask_t)0x55 == events, "wrong events mask");]]> @@ -737,11 +740,11 @@ test_assert((eventmask_t)0x55 == events, "wrong events mask");]]> - @@ -763,10 +766,10 @@ test_assert((eventmask_t)0 == events, "wrong events mask");]]> CH_CFG_USE_MAILBOXES - @@ -788,7 +791,7 @@ static MAILBOX_DECL(mb1, mb_buffer, MB_SIZE);]]> - @@ -812,10 +815,10 @@ unsigned i;]]> - @@ -827,12 +830,12 @@ test_assert_lock(mb1.buffer == mb1.rdptr, "read pointer not aligned to base");]] - @@ -844,11 +847,11 @@ chMBResumeX(&mb1);]]> - @@ -860,8 +863,8 @@ test_assert(msg1 == MSG_OK, "wrong wake-up message");]]> - @@ -873,11 +876,11 @@ test_assert_lock(mb1.rdptr == mb1.wrptr, "pointers not aligned");]]> - @@ -889,9 +892,9 @@ test_assert_sequence("ABCD", "wrong get sequence");]]> - @@ -903,9 +906,9 @@ test_assert(msg1 == MSG_OK, "wrong wake-up message");]]> - @@ -929,7 +932,7 @@ test_assert(mb1.buffer == mb1.rdptr, "read pointer not aligned to base");]]> - @@ -953,13 +956,13 @@ unsigned i;]]> - @@ -971,15 +974,15 @@ chMBResumeX(&mb1);]]> - @@ -991,8 +994,8 @@ test_assert(msg1 == MSG_OK, "wrong wake-up message");]]> - @@ -1004,13 +1007,13 @@ test_assert_lock(mb1.rdptr == mb1.wrptr, "pointers not aligned");]]> - @@ -1022,9 +1025,9 @@ test_assert_sequence("ABCD", "wrong get sequence");]]> - @@ -1036,9 +1039,9 @@ test_assert(msg1 == MSG_OK, "wrong wake-up message");]]> - @@ -1062,7 +1065,7 @@ test_assert(mb1.buffer == mb1.rdptr, "read pointer not aligned to base");]]> - @@ -1075,9 +1078,9 @@ unsigned i;]]> - @@ -1089,17 +1092,17 @@ unsigned i;]]> - @@ -1111,7 +1114,7 @@ test_assert(msg1 == MSG_TIMEOUT, "wrong wake-up message");]]> - @@ -1123,11 +1126,11 @@ chMBResumeX(&mb1);]]> - @@ -1149,21 +1152,21 @@ test_assert(msg1 == MSG_TIMEOUT, "wrong wake-up message");]]> CH_CFG_USE_MEMPOOLS - @@ -1208,7 +1211,7 @@ static void *null_provider(size_t size, unsigned align) { - @@ -1231,7 +1234,7 @@ static void *null_provider(size_t size, unsigned align) { - @@ -1243,7 +1246,7 @@ static void *null_provider(size_t size, unsigned align) { - @@ -1266,7 +1269,7 @@ static void *null_provider(size_t size, unsigned align) { - @@ -1313,7 +1316,7 @@ test_assert(chPoolAlloc(&mp1) == NULL, "provider returned memory");]]> - @@ -1336,7 +1339,7 @@ test_assert(chPoolAlloc(&mp1) == NULL, "provider returned memory");]]> - @@ -1348,7 +1351,7 @@ test_assert(chPoolAlloc(&mp1) == NULL, "provider returned memory");]]> - @@ -1416,10 +1419,10 @@ test_assert(chPoolAlloc(&mp1) == NULL, "provider returned memory");]]> CH_CFG_USE_HEAP - @@ -1441,7 +1444,7 @@ static CH_HEAP_AREA(myheap, HEAP_SIZE);]]> - @@ -1465,7 +1468,7 @@ size_t n, sz;]]> - @@ -1477,8 +1480,8 @@ test_assert(p1 == NULL, "allocation not failed");]]> - @@ -1490,11 +1493,11 @@ chHeapFree(p1);]]> - = ALLOC_SIZE, "unexpected heap state"); + = ALLOC_SIZE, "unexpected heap state"); test_assert(total_size == largest_size, "unexpected heap state");]]> @@ -1506,12 +1509,12 @@ test_assert(total_size == largest_size, "unexpected heap state");]]> - @@ -1523,12 +1526,12 @@ test_assert(chHeapStatus(&test_heap, &n, NULL) == 1, "heap fragmented");]]> - @@ -1540,17 +1543,17 @@ test_assert(chHeapStatus(&test_heap, &n, NULL) == 1, "heap fragmented");]]> - @@ -1562,13 +1565,13 @@ test_assert(chHeapStatus(&test_heap, &n, NULL) == 1, "heap fragmented");]]> - @@ -1580,10 +1583,10 @@ test_assert(chHeapStatus(&test_heap, &n, NULL) == 1, "heap fragmented");]]> - @@ -1595,7 +1598,7 @@ chHeapFree(p1);]]> - @@ -1619,7 +1622,7 @@ test_assert(n == sz, "size changed");]]> - @@ -1632,9 +1635,9 @@ size_t total_size, largest_size;]]> - @@ -1646,7 +1649,7 @@ chHeapFree(p1);]]> - -- cgit v1.2.3