aboutsummaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-12-23 09:40:50 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-12-23 09:40:50 +0000
commit398c024927d7fb31d86c50e081a74a9c8fd45769 (patch)
treeaf4112982962f797147b5c80f4d7e7c72d7cebc2 /test/test.c
parent05b8a7431d43735af86c4a393a06f2e18a4cfe3a (diff)
downloadChibiOS-398c024927d7fb31d86c50e081a74a9c8fd45769.tar.gz
ChibiOS-398c024927d7fb31d86c50e081a74a9c8fd45769.tar.bz2
ChibiOS-398c024927d7fb31d86c50e081a74a9c8fd45769.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@159 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/test.c b/test/test.c
index 1687a36c7..30aa43a2d 100644
--- a/test/test.c
+++ b/test/test.c
@@ -23,7 +23,7 @@
void ChkIntSources(void);
#endif
-#if defined(WIN32) && defined(_DEBUG)
+#if defined(WIN32)
static WorkingArea(wsT1, 512);
static WorkingArea(wsT2, 512);
static WorkingArea(wsT3, 512);
@@ -82,8 +82,11 @@ __attribute__((noinline))
void CPU(t_time ms) {
t_time time = chSysGetTime() + ms;
- while (chSysGetTime() != time)
- ;
+ while (chSysGetTime() != time) {
+#if defined(WIN32)
+ ChkIntSources();
+#endif
+ }
}
__attribute__((noinline))
@@ -518,6 +521,9 @@ void bench5(void) {
i |= chIQGet(&iq) << 8;
i |= chIQGet(&iq);
i++;
+#if defined(WIN32)
+ ChkIntSources();
+#endif
}
print("Queues throughput = ");
printn(i * 4);