Browse Source

Testing: thread safe unit test updates

Anatoli Arkhipenko 4 months ago
parent
commit
602b77e565
2 changed files with 10 additions and 0 deletions
  1. 5 0
      tests/test-queue-impl.cpp
  2. 5 0
      tests/test-scheduler-thread-safe.cpp

+ 5 - 0
tests/test-queue-impl.cpp

@@ -6,6 +6,11 @@
 
 // Define thread-safe features before including TaskScheduler
 // defined in the test.yml
+#define _TASK_HEADER_AND_CPP
+#define _TASK_THREAD_SAFE
+#define _TASK_STATUS_REQUEST
+#define _TASK_TIMEOUT_TASK_THREAD_SAFE
+
 #include "test-queue-impl.h"
 #include "TaskSchedulerDeclarations.h"
 

+ 5 - 0
tests/test-scheduler-thread-safe.cpp

@@ -15,6 +15,11 @@
 // - Simulates ISR context using thread-local storage
 // - Compatible with Google Test framework on Ubuntu
 
+#define _TASK_HEADER_AND_CPP
+#define _TASK_THREAD_SAFE
+#define _TASK_STATUS_REQUEST
+#define _TASK_TIMEOUT
+
 #include <gtest/gtest.h>
 #include "Arduino.h"
 #include "TaskSchedulerDeclarations.h"