From 6795208ee66ef38fa24316dd5137b4540a46bf62 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 20 Mar 2016 15:41:04 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9143 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/rt/configuration.xml | 229 ++++++++++++++++++++++++++++++++------ 1 file changed, 194 insertions(+), 35 deletions(-) diff --git a/test/rt/configuration.xml b/test/rt/configuration.xml index b08626d7a..7c59e5014 100644 --- a/test/rt/configuration.xml +++ b/test/rt/configuration.xml @@ -32,10 +32,89 @@ - + - + @@ -100,9 +179,9 @@ static void vtcb(void *p) { - @@ -114,9 +193,9 @@ test_assert(result == false, "ready list check failed");]]> - @@ -128,9 +207,9 @@ test_assert(result == false, "virtual timers list check failed");]]> - @@ -142,9 +221,9 @@ test_assert(result == false, "registry list check failed");]]> - @@ -280,22 +359,6 @@ chSysEnable();]]> - - - - - Internal Tests - - - Threads Functionality. - - - This sequence tests the ChibiOS/NIL functionalities related to threading. - - - - - System Tick Counter functionality. @@ -333,6 +396,27 @@ while (time == chVTGetSystemTimeX()) { + + + + + Internal Tests + + + Threads Functionality. + + + This sequence tests the ChibiOS/NIL functionalities related to threading. + + + + + Thread Sleep functionality. @@ -366,7 +450,7 @@ while (time == chVTGetSystemTimeX()) { @@ -381,7 +465,7 @@ test_assert_time_window(time + 100, @@ -396,7 +480,7 @@ test_assert_time_window(time + US2ST(100000), @@ -411,7 +495,7 @@ test_assert_time_window(time + MS2ST(100), @@ -426,12 +510,87 @@ test_assert_time_window(time + S2ST(1), + + + Ready List functionality, threads priority order. + + + Five threads, are enqueued in the ready list and atomically executed. The test expects the threads to perform their operations in correct priority order regardless of the initial order. + + + + + + + + + + + + + + + + + + + Creating 5 threads with increasing priority, execution sequence is tested. + + + + + + + + + + + Creating 5 threads with decreasing priority, execution sequence is tested. + + + + + + + + + + + Creating 5 threads with pseudo-random priority, execution sequence is tested. + + + + + + + + + +