diff --git a/test/rt/configuration.xml b/test/rt/configuration.xml index 5c3342210..f934d120d 100644 --- a/test/rt/configuration.xml +++ b/test/rt/configuration.xml @@ -2202,7 +2202,7 @@ test_assert_sequence("ABCDE", "invalid sequence");]]> This test case verifies the priority boost of a thread waiting on a conditional variable queue. It tests this very specific situation in order to improve code coverage. The created threads perform the following operations: TA{lock(M2), lock(M1), wait(C1), unlock(M1), unlock(M2)}, TB{lock(M2), wait(C1), unlock(M2)}. TC{lock(M1), unlock(M1)}. - + CH_CFG_USE_CONDVARS @@ -2792,7 +2792,7 @@ test_wait_threads();]]> Timeout functionality is tested for chEvtWaitOneTimeout(), chEvtWaitAnyTimeout() and chEvtWaitAllTimeout(). - + CH_CFG_USE_EVENTS_TIMEOUT @@ -3308,11 +3308,11 @@ test_assert(msg1 == MSG_TIMEOUT, "wrong wake-up message");]]> Conditions + * This test is only executed if the following preprocessor condition + * evaluates to true: + * - CH_CFG_USE_CONDVARS + * . + * *

Test Steps

* - [5.9.1] Reading current base priority. * - [5.9.2] Thread A is created at priority P(+1), it locks M2, locks @@ -1023,6 +1030,7 @@ static const testcase_t test_005_009 = { NULL, test_005_009_execute }; +#endif /* CH_CFG_USE_CONDVARS */ /**************************************************************************** * Exported data. @@ -1052,7 +1060,9 @@ const testcase_t * const test_sequence_005[] = { #if (CH_CFG_USE_CONDVARS) || defined(__DOXYGEN__) &test_005_008, #endif +#if (CH_CFG_USE_CONDVARS) || defined(__DOXYGEN__) &test_005_009, +#endif NULL }; diff --git a/test/rt/source/test/test_sequence_007.c b/test/rt/source/test/test_sequence_007.c index 096d62b66..c1a40e643 100644 --- a/test/rt/source/test/test_sequence_007.c +++ b/test/rt/source/test/test_sequence_007.c @@ -406,6 +406,7 @@ static const testcase_t test_007_005 = { test_007_005_execute }; +#if (CH_CFG_USE_EVENTS_TIMEOUT) || defined(__DOXYGEN__) /** * @page test_007_006 [7.6] Events Flags wait timeouts * @@ -413,6 +414,12 @@ static const testcase_t test_007_005 = { * Timeout functionality is tested for chEvtWaitOneTimeout(), * chEvtWaitAnyTimeout() and chEvtWaitAllTimeout(). * + *

Conditions

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

Test Steps

* - [7.6.1] The functions are invoked first with TIME_IMMEDIATE * timeout, the timeout condition is tested. @@ -459,6 +466,7 @@ static const testcase_t test_007_006 = { NULL, test_007_006_execute }; +#endif /* CH_CFG_USE_EVENTS_TIMEOUT */ /** * @page test_007_007 [7.7] Broadcasting using chEvtBroadcast() @@ -551,7 +559,9 @@ const testcase_t * const test_sequence_007[] = { &test_007_003, &test_007_004, &test_007_005, +#if (CH_CFG_USE_EVENTS_TIMEOUT) || defined(__DOXYGEN__) &test_007_006, +#endif &test_007_007, NULL }; diff --git a/test/rt/source/test/test_sequence_012.c b/test/rt/source/test/test_sequence_012.c index 4405541e7..f224d45bd 100644 --- a/test/rt/source/test/test_sequence_012.c +++ b/test/rt/source/test/test_sequence_012.c @@ -112,12 +112,14 @@ static THD_FUNCTION(bmk_thread4, p) { chSysUnlock(); } +#if CH_CFG_USE_SEMAPHORES static THD_FUNCTION(bmk_thread7, p) { (void)p; while (!chThdShouldTerminateX()) chSemWait(&sem1); } +#endif static THD_FUNCTION(bmk_thread8, p) {