aboutsummaryrefslogtreecommitdiffstats
path: root/test/rt
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-11-04 10:51:23 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-11-04 10:51:23 +0000
commit476270c2ab91169a8e731562b0e68b86602e0d77 (patch)
tree08407b10b44bea3e84b37b6796da967229c02571 /test/rt
parent5626d9925ff6fafabac43ae65c38a290fd2c0db6 (diff)
downloadChibiOS-476270c2ab91169a8e731562b0e68b86602e0d77.tar.gz
ChibiOS-476270c2ab91169a8e731562b0e68b86602e0d77.tar.bz2
ChibiOS-476270c2ab91169a8e731562b0e68b86602e0d77.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7475 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/rt')
-rw-r--r--test/rt/test.c2
-rw-r--r--test/rt/testbmk.c20
2 files changed, 11 insertions, 11 deletions
diff --git a/test/rt/test.c b/test/rt/test.c
index 0750a0d80..ce56dd5fa 100644
--- a/test/rt/test.c
+++ b/test/rt/test.c
@@ -229,7 +229,7 @@ void test_cpu_pulse(unsigned duration) {
do {
now = chThdGetTicksX(chThdGetSelfX());
#if defined(SIMULATOR)
- ChkIntSources();
+ _sim_check_for_interrupts();
#endif
}
while (end > start ? (now >= start) && (now < end) :
diff --git a/test/rt/testbmk.c b/test/rt/testbmk.c
index 4f648fa14..8c3545a1c 100644
--- a/test/rt/testbmk.c
+++ b/test/rt/testbmk.c
@@ -86,7 +86,7 @@ static unsigned int msg_loop_test(thread_t *tp) {
(void)chMsgSend(tp, 1);
n++;
#if defined(SIMULATOR)
- ChkIntSources();
+ _sim_check_for_interrupts();
#endif
} while (!test_timer_done);
(void)chMsgSend(tp, 0);
@@ -232,7 +232,7 @@ static void bmk4_execute(void) {
chSysUnlock();
n += 4;
#if defined(SIMULATOR)
- ChkIntSources();
+ _sim_check_for_interrupts();
#endif
} while (!test_timer_done);
chSysLock();
@@ -274,7 +274,7 @@ static void bmk5_execute(void) {
chThdWait(chThdCreateStatic(wap, WA_SIZE, prio, thread2, NULL));
n++;
#if defined(SIMULATOR)
- ChkIntSources();
+ _sim_check_for_interrupts();
#endif
} while (!test_timer_done);
test_print("--- Score : ");
@@ -313,7 +313,7 @@ static void bmk6_execute(void) {
chThdCreateStatic(wap, WA_SIZE, prio, thread2, NULL);
n++;
#if defined(SIMULATOR)
- ChkIntSources();
+ _sim_check_for_interrupts();
#endif
} while (!test_timer_done);
test_print("--- Score : ");
@@ -368,7 +368,7 @@ static void bmk7_execute(void) {
chSemReset(&sem1, 0);
n++;
#if defined(SIMULATOR)
- ChkIntSources();
+ _sim_check_for_interrupts();
#endif
} while (!test_timer_done);
test_terminate_threads();
@@ -408,7 +408,7 @@ static msg_t thread8(void *p) {
chThdYield();
(*(uint32_t *)p) += 4;
#if defined(SIMULATOR)
- ChkIntSources();
+ _sim_check_for_interrupts();
#endif
} while(!chThdShouldTerminateX());
return 0;
@@ -475,7 +475,7 @@ static void bmk9_execute(void) {
(void)chIQGet(&iq);
n++;
#if defined(SIMULATOR)
- ChkIntSources();
+ _sim_check_for_interrupts();
#endif
} while (!test_timer_done);
test_print("--- Score : ");
@@ -517,7 +517,7 @@ static void bmk10_execute(void) {
chSysUnlock();
n++;
#if defined(SIMULATOR)
- ChkIntSources();
+ _sim_check_for_interrupts();
#endif
} while (!test_timer_done);
test_print("--- Score : ");
@@ -563,7 +563,7 @@ static void bmk11_execute(void) {
chSemSignal(&sem1);
n++;
#if defined(SIMULATOR)
- ChkIntSources();
+ _sim_check_for_interrupts();
#endif
} while (!test_timer_done);
test_print("--- Score : ");
@@ -610,7 +610,7 @@ static void bmk12_execute(void) {
chMtxUnlock(&mtx1);
n++;
#if defined(SIMULATOR)
- ChkIntSources();
+ _sim_check_for_interrupts();
#endif
} while (!test_timer_done);
test_print("--- Score : ");