Skip to content

Commit f663bfe

Browse files
committed
Testing: thread safe unit test updates
1 parent 320162c commit f663bfe

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ jobs:
493493
# Compiler definitions for Arduino compatibility and thread safety
494494
target_compile_definitions(test_thread_safe PRIVATE
495495
ARDUINO=300
496-
_TASK_NON_ARDUINO
496+
_TASK_HEADER_AND_CPP
497497
_TASK_THREAD_SAFE
498498
_TASK_STATUS_REQUEST
499499
_TASK_TIMEOUT

tests/test-queue-impl.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
#include "Arduino.h"
66

77
// Define thread-safe features before including TaskScheduler
8-
#define _TASK_NON_ARDUINO
9-
#define _TASK_THREAD_SAFE
10-
#define _TASK_STATUS_REQUEST
11-
#define _TASK_TIMEOUT
8+
// defined in the test.yml
129
#include "TaskSchedulerDeclarations.h"
1310

1411
#include <thread>

tests/test-scheduler-thread-safe.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#include <gtest/gtest.h>
1919
#include "Arduino.h"
20-
// #include "TaskScheduler.h"
20+
#include "TaskSchedulerDeclarations.h"
2121
#include "test-queue-impl.h"
2222

2323
#include <thread>

0 commit comments

Comments
 (0)