diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-04-01 12:27:20 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-04-01 12:27:20 +0000 |
commit | 4da6f0da37cf859797dbfbd53679024dac459011 (patch) | |
tree | 8be3d329601818709a5864b5fe8a33bf43f184b0 /test/rt/source | |
parent | 14b4b03983bc72155253b68777c52a32848c57f4 (diff) | |
download | ChibiOS-4da6f0da37cf859797dbfbd53679024dac459011.tar.gz ChibiOS-4da6f0da37cf859797dbfbd53679024dac459011.tar.bz2 ChibiOS-4da6f0da37cf859797dbfbd53679024dac459011.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9197 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/rt/source')
-rw-r--r-- | test/rt/source/test/test_sequence_004.c | 10 | ||||
-rw-r--r-- | test/rt/source/test/test_sequence_012.c | 52 |
2 files changed, 31 insertions, 31 deletions
diff --git a/test/rt/source/test/test_sequence_004.c b/test/rt/source/test/test_sequence_004.c index 666d442dc..e5c9b0b7e 100644 --- a/test/rt/source/test/test_sequence_004.c +++ b/test/rt/source/test/test_sequence_004.c @@ -193,11 +193,11 @@ static void test_004_002_execute(void) { chSemSignal(&sem1);
chSemSignal(&sem1);
test_wait_threads();
- #if CH_CFG_USE_SEMAPHORES_PRIORITY
- test_assert_sequence("ADCEB", "invalid sequence");
- #else
- test_assert_sequence("ABCDE", "invalid sequence");
- #endif
+#if CH_CFG_USE_SEMAPHORES_PRIORITY
+ test_assert_sequence("ADCEB", "invalid sequence");
+#else
+ test_assert_sequence("ABCDE", "invalid sequence");
+#endif
}
}
diff --git a/test/rt/source/test/test_sequence_012.c b/test/rt/source/test/test_sequence_012.c index bdaef4c4a..94076de85 100644 --- a/test/rt/source/test/test_sequence_012.c +++ b/test/rt/source/test/test_sequence_012.c @@ -377,9 +377,9 @@ static void test_012_004_execute(void) { chSchWakeupS(tp, MSG_OK);
chSysUnlock();
n += 4;
- #if defined(SIMULATOR)
+#if defined(SIMULATOR)
_sim_check_for_interrupts();
- #endif
+#endif
} while (chVTIsSystemTimeWithinX(start, end));
}
@@ -442,9 +442,9 @@ static void test_012_005_execute(void) { do {
chThdWait(chThdCreateStatic(wa[0], WA_SIZE, prio, bmk_thread3, NULL));
n++;
- #if defined(SIMULATOR)
+#if defined(SIMULATOR)
_sim_check_for_interrupts();
- #endif
+#endif
} while (chVTIsSystemTimeWithinX(start, end));
}
@@ -499,9 +499,9 @@ static void test_012_006_execute(void) { do {
chThdRelease(chThdCreateStatic(wa[0], WA_SIZE, prio, bmk_thread3, NULL));
n++;
- #if defined(SIMULATOR)
+#if defined(SIMULATOR)
_sim_check_for_interrupts();
- #endif
+#endif
} while (chVTIsSystemTimeWithinX(start, end));
}
@@ -577,9 +577,9 @@ static void test_012_007_execute(void) { do {
chSemReset(&sem1, 0);
n++;
- #if defined(SIMULATOR)
+#if defined(SIMULATOR)
_sim_check_for_interrupts();
- #endif
+#endif
} while (chVTIsSystemTimeWithinX(start, end));
}
@@ -707,9 +707,9 @@ static void test_012_009_execute(void) { chVTDoResetI(&vt2);
chSysUnlock();
n++;
- #if defined(SIMULATOR)
+#if defined(SIMULATOR)
_sim_check_for_interrupts();
- #endif
+#endif
} while (chVTIsSystemTimeWithinX(start, end));
}
@@ -778,9 +778,9 @@ static void test_012_010_execute(void) { chSemWait(&sem1);
chSemSignal(&sem1);
n++;
- #if defined(SIMULATOR)
+#if defined(SIMULATOR)
_sim_check_for_interrupts();
- #endif
+#endif
} while (chVTIsSystemTimeWithinX(start, end));
}
@@ -850,9 +850,9 @@ static void test_012_011_execute(void) { chMtxLock(&mtx1);
chMtxUnlock(&mtx1);
n++;
- #if defined(SIMULATOR)
+#if defined(SIMULATOR)
_sim_check_for_interrupts();
- #endif
+#endif
} while (chVTIsSystemTimeWithinX(start, end));
}
@@ -921,61 +921,61 @@ static void test_012_012_execute(void) { /* [12.12.4] The size of a semaphore structure is printed.*/
test_set_step(4);
{
- #if CH_CFG_USE_SEMAPHORES || defined(__DOXYGEN__)
+#if CH_CFG_USE_SEMAPHORES || defined(__DOXYGEN__)
test_print("--- Semaph: ");
test_printn(sizeof(semaphore_t));
test_println(" bytes");
- #endif
+#endif
}
/* [12.12.5] The size of a mutex is printed.*/
test_set_step(5);
{
- #if CH_CFG_USE_MUTEXES || defined(__DOXYGEN__)
+#if CH_CFG_USE_MUTEXES || defined(__DOXYGEN__)
test_print("--- Mutex : ");
test_printn(sizeof(mutex_t));
test_println(" bytes");
- #endif
+#endif
}
/* [12.12.6] The size of a condition variable is printed.*/
test_set_step(6);
{
- #if CH_CFG_USE_CONDVARS || defined(__DOXYGEN__)
+#if CH_CFG_USE_CONDVARS || defined(__DOXYGEN__)
test_print("--- CondV.: ");
test_printn(sizeof(condition_variable_t));
test_println(" bytes");
- #endif
+#endif
}
/* [12.12.7] The size of an event source is printed.*/
test_set_step(7);
{
- #if CH_CFG_USE_EVENTS || defined(__DOXYGEN__)
+#if CH_CFG_USE_EVENTS || defined(__DOXYGEN__)
test_print("--- EventS: ");
test_printn(sizeof(event_source_t));
test_println(" bytes");
- #endif
+#endif
}
/* [12.12.8] The size of an event listener is printed.*/
test_set_step(8);
{
- #if CH_CFG_USE_EVENTS || defined(__DOXYGEN__)
+#if CH_CFG_USE_EVENTS || defined(__DOXYGEN__)
test_print("--- EventL: ");
test_printn(sizeof(event_listener_t));
test_println(" bytes");
- #endif
+#endif
}
/* [12.12.9] The size of a mailbox is printed.*/
test_set_step(9);
{
- #if CH_CFG_USE_MAILBOXES || defined(__DOXYGEN__)
+#if CH_CFG_USE_MAILBOXES || defined(__DOXYGEN__)
test_print("--- MailB.: ");
test_printn(sizeof(mailbox_t));
test_println(" bytes");
- #endif
+#endif
}
}
|