Sfoglia il codice sorgente

Testing: thread safe unit test updates

Anatoli Arkhipenko 3 mesi fa
parent
commit
f663bfee14

+ 1 - 1
.github/workflows/test.yml

@@ -493,7 +493,7 @@ jobs:
           # Compiler definitions for Arduino compatibility and thread safety
           target_compile_definitions(test_thread_safe PRIVATE
               ARDUINO=300
-              _TASK_NON_ARDUINO
+              _TASK_HEADER_AND_CPP
               _TASK_THREAD_SAFE
               _TASK_STATUS_REQUEST
               _TASK_TIMEOUT

+ 1 - 4
tests/test-queue-impl.cpp

@@ -5,10 +5,7 @@
 #include "Arduino.h"
 
 // Define thread-safe features before including TaskScheduler
-#define _TASK_NON_ARDUINO
-#define _TASK_THREAD_SAFE
-#define _TASK_STATUS_REQUEST
-#define _TASK_TIMEOUT
+// defined in the test.yml
 #include "TaskSchedulerDeclarations.h"
 
 #include <thread>

+ 1 - 1
tests/test-scheduler-thread-safe.cpp

@@ -17,7 +17,7 @@
 
 #include <gtest/gtest.h>
 #include "Arduino.h"
-// #include "TaskScheduler.h"
+#include "TaskSchedulerDeclarations.h"
 #include "test-queue-impl.h"
 
 #include <thread>