diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-05-16 10:57:16 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-05-16 10:57:16 +0000 |
commit | 2706d240bbea25b21dac8e0bc123de9cb2080a13 (patch) | |
tree | 2dadce33dd364f5d745f3f8c5274289ad237e63d /test/testevt.c | |
parent | 2f39b6e6b5bd6383c125fbf151ffd0d7e488a1de (diff) | |
download | ChibiOS-2706d240bbea25b21dac8e0bc123de9cb2080a13.tar.gz ChibiOS-2706d240bbea25b21dac8e0bc123de9cb2080a13.tar.bz2 ChibiOS-2706d240bbea25b21dac8e0bc123de9cb2080a13.zip |
Added static initializers to thread queues, semaphores, mutexes, condvars and event sources.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@975 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/testevt.c')
-rw-r--r-- | test/testevt.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/testevt.c b/test/testevt.c index 31f8870b0..e053737a5 100644 --- a/test/testevt.c +++ b/test/testevt.c @@ -54,7 +54,13 @@ #define ALLOWED_DELAY MS2ST(5)
-static EventSource es1, es2;
+/*
+ * Note, the static initializers are not really required because the
+ * variables are explicitly initialized in each test case. It is done in order
+ * to test the macros.
+ */
+static EVENTSOURCE_DECL(es1);
+static EVENTSOURCE_DECL(es2);
/**
* @page test_events_001 Events registration and dispatch
|