Prechádzať zdrojové kódy

Testing: thread safe unit test updates

Anatoli Arkhipenko 4 mesiacov pred
rodič
commit
602b77e565

+ 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"