Explorar o código

Testing: thread safe unit test updates

Anatoli Arkhipenko hai 4 meses
pai
achega
602b77e565
Modificáronse 2 ficheiros con 10 adicións e 0 borrados
  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"