From e47e9096bd7c396d1a3cef214fb2e3de5c43c64f Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Thu, 31 Mar 2016 15:07:56 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9191 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/rt/source/test/test_sequence_005.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'test/rt/source') diff --git a/test/rt/source/test/test_sequence_005.c b/test/rt/source/test/test_sequence_005.c index ebe7b79b3..7c09d3662 100644 --- a/test/rt/source/test/test_sequence_005.c +++ b/test/rt/source/test/test_sequence_005.c @@ -87,6 +87,7 @@ static THD_FUNCTION(thread1, p) { chMtxUnlock(&m1); } +#if CH_DBG_THREADS_PROFILING || defined(__DOXYGEN__) /* Low priority thread */ static THD_FUNCTION(thread2L, p) { @@ -173,6 +174,7 @@ static THD_FUNCTION(thread3HH, p) { chMtxUnlock(&m2); test_emit_token('A'); } +#endif /* CH_DBG_THREADS_PROFILING */ static THD_FUNCTION(thread4A, p) { @@ -297,6 +299,7 @@ static const testcase_t test_005_001 = { test_005_001_execute }; +#if (CH_DBG_THREADS_PROFILING) || defined(__DOXYGEN__) /** * @page test_005_002 [5.2] Priority inheritance, simple case * @@ -308,6 +311,12 @@ static const testcase_t test_005_001 = { * order by rearranging their priorities in order to avoid the priority * inversion trap. * + *

Conditions

+ * This test is only executed if the following preprocessor condition + * evaluates to true: + * - CH_DBG_THREADS_PROFILING + * . + * *

Test Steps

* - [5.2.1] Getting the system time for test duration measurement. * - [5.2.2] The three contenders threads are created and let run @@ -358,7 +367,9 @@ static const testcase_t test_005_002 = { NULL, test_005_002_execute }; +#endif /* CH_DBG_THREADS_PROFILING */ +#if (CH_DBG_THREADS_PROFILING) || defined(__DOXYGEN__) /** * @page test_005_003 [5.3] Priority inheritance, complex case * @@ -369,6 +380,12 @@ static const testcase_t test_005_002 = { * operations in increasing priority order by rearranging their * priorities in order to avoid the priority inversion trap. * + *

Conditions

+ * This test is only executed if the following preprocessor condition + * evaluates to true: + * - CH_DBG_THREADS_PROFILING + * . + * *

Test Steps

* - [5.3.1] Getting the system time for test duration measurement. * - [5.3.2] The five contenders threads are created and let run @@ -422,6 +439,7 @@ static const testcase_t test_005_003 = { NULL, test_005_003_execute }; +#endif /* CH_DBG_THREADS_PROFILING */ /** * @page test_005_004 [5.4] Priority return verification @@ -1012,8 +1030,12 @@ static const testcase_t test_005_009 = { */ const testcase_t * const test_sequence_005[] = { &test_005_001, +#if (CH_DBG_THREADS_PROFILING) || defined(__DOXYGEN__) &test_005_002, +#endif +#if (CH_DBG_THREADS_PROFILING) || defined(__DOXYGEN__) &test_005_003, +#endif &test_005_004, #if (!CH_CFG_USE_MUTEXES_RECURSIVE) || defined(__DOXYGEN__) &test_005_005, -- cgit v1.2.3