Sfoglia il codice sorgente

Testing: thread safe unit test updates

Anatoli Arkhipenko 4 mesi fa
parent
commit
602b77e565
2 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  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"