aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-12-24 09:38:50 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-12-24 09:38:50 +0000
commit0873332c30f78769147f0cb16d71f38ed846a814 (patch)
tree58a58b839b804b8fcbea7e8ab424a966647aa8e5 /test
parent8f30bbcc3488a2c92a40e7912716627169637232 (diff)
downloadChibiOS-0873332c30f78769147f0cb16d71f38ed846a814.tar.gz
ChibiOS-0873332c30f78769147f0cb16d71f38ed846a814.tar.bz2
ChibiOS-0873332c30f78769147f0cb16d71f38ed846a814.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1463 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test')
-rw-r--r--test/test.c2
-rw-r--r--test/testbmk.c20
2 files changed, 11 insertions, 11 deletions
diff --git a/test/test.c b/test/test.c
index f4272ca14..623545318 100644
--- a/test/test.c
+++ b/test/test.c
@@ -189,7 +189,7 @@ void test_cpu_pulse(unsigned duration) {
end = start + MS2ST(duration);
do {
now = chThdSelf()->p_time;
-#if defined(WIN32)
+#if defined(SIMULATOR)
ChkIntSources();
#endif
}
diff --git a/test/testbmk.c b/test/testbmk.c
index 35a193221..89a50cd9d 100644
--- a/test/testbmk.c
+++ b/test/testbmk.c
@@ -81,7 +81,7 @@ static unsigned int msg_loop_test(Thread *tp) {
do {
(void)chMsgSend(tp, 1);
n++;
-#if defined(WIN32)
+#if defined(SIMULATOR)
ChkIntSources();
#endif
} while (!test_timer_done);
@@ -248,7 +248,7 @@ static void bmk4_execute(void) {
chSchWakeupS(tp, RDY_OK);
chSysUnlock();
n += 4;
-#if defined(WIN32)
+#if defined(SIMULATOR)
ChkIntSources();
#endif
} while (!test_timer_done);
@@ -295,7 +295,7 @@ static void bmk5_execute(void) {
do {
chThdWait(chThdCreateStatic(wap, WA_SIZE, prio, thread2, NULL));
n++;
-#if defined(WIN32)
+#if defined(SIMULATOR)
ChkIntSources();
#endif
} while (!test_timer_done);
@@ -339,7 +339,7 @@ static void bmk6_execute(void) {
do {
chThdCreateStatic(wap, WA_SIZE, prio, thread2, NULL);
n++;
-#if defined(WIN32)
+#if defined(SIMULATOR)
ChkIntSources();
#endif
} while (!test_timer_done);
@@ -399,7 +399,7 @@ static void bmk7_execute(void) {
do {
chSemReset(&sem1, 0);
n++;
-#if defined(WIN32)
+#if defined(SIMULATOR)
ChkIntSources();
#endif
} while (!test_timer_done);
@@ -439,7 +439,7 @@ static msg_t thread8(void *p) {
chThdYield();
chThdYield();
(*(uint32_t *)p) += 4;
-#if defined(WIN32)
+#if defined(SIMULATOR)
ChkIntSources();
#endif
} while(!chThdShouldTerminate());
@@ -514,7 +514,7 @@ static void bmk9_execute(void) {
(void)chIQGet(&iq);
(void)chIQGet(&iq);
n++;
-#if defined(WIN32)
+#if defined(SIMULATOR)
ChkIntSources();
#endif
} while (!test_timer_done);
@@ -560,7 +560,7 @@ static void bmk10_execute(void) {
chVTResetI(&vt2);
chSysUnlock();
n++;
-#if defined(WIN32)
+#if defined(SIMULATOR)
ChkIntSources();
#endif
} while (!test_timer_done);
@@ -611,7 +611,7 @@ static void bmk11_execute(void) {
chSemWait(&sem1);
chSemSignal(&sem1);
n++;
-#if defined(WIN32)
+#if defined(SIMULATOR)
ChkIntSources();
#endif
} while (!test_timer_done);
@@ -663,7 +663,7 @@ static void bmk12_execute(void) {
chMtxLock(&mtx1);
chMtxUnlock();
n++;
-#if defined(WIN32)
+#if defined(SIMULATOR)
ChkIntSources();
#endif
} while (!test_timer_done);