aboutsummaryrefslogtreecommitdiffstats
path: root/test/rt/source
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-03-31 15:07:56 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-03-31 15:07:56 +0000
commite47e9096bd7c396d1a3cef214fb2e3de5c43c64f (patch)
treeec48587da5b242bfbc9ec17567478c03132f66fb /test/rt/source
parente783e741f5951c0907ce0debec86cd266899a185 (diff)
downloadChibiOS-e47e9096bd7c396d1a3cef214fb2e3de5c43c64f.tar.gz
ChibiOS-e47e9096bd7c396d1a3cef214fb2e3de5c43c64f.tar.bz2
ChibiOS-e47e9096bd7c396d1a3cef214fb2e3de5c43c64f.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9191 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/rt/source')
-rw-r--r--test/rt/source/test/test_sequence_005.c22
1 files changed, 22 insertions, 0 deletions
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.
*
+ * <h2>Conditions</h2>
+ * This test is only executed if the following preprocessor condition
+ * evaluates to true:
+ * - CH_DBG_THREADS_PROFILING
+ * .
+ *
* <h2>Test Steps</h2>
* - [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.
*
+ * <h2>Conditions</h2>
+ * This test is only executed if the following preprocessor condition
+ * evaluates to true:
+ * - CH_DBG_THREADS_PROFILING
+ * .
+ *
* <h2>Test Steps</h2>
* - [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,