aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/testevt.c8
-rw-r--r--test/testmtx.c10
-rw-r--r--test/testsem.c7
3 files changed, 21 insertions, 4 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
diff --git a/test/testmtx.c b/test/testmtx.c
index 030b8ab87..6027aca7e 100644
--- a/test/testmtx.c
+++ b/test/testmtx.c
@@ -63,8 +63,14 @@
#define ALLOWED_DELAY 5
-static Mutex m1, m2;
-static CondVar c1;
+/*
+ * 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 MUTEX_DECL(m1);
+static MUTEX_DECL(m2);
+static CONDVAR_DECL(c1);
/**
* @page test_mtx_001 Priority enqueuing test
diff --git a/test/testsem.c b/test/testsem.c
index 7cb103789..46c6a7941 100644
--- a/test/testsem.c
+++ b/test/testsem.c
@@ -53,7 +53,12 @@
#define ALLOWED_DELAY MS2ST(5)
-static Semaphore sem1;
+/*
+ * 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 SEMAPHORE_DECL(sem1, 0);
/**
* @page test_sem_001 Enqueuing test