Skip to content

Commit 029f557

Browse files
committed
Testing: thread safe unit test updates
1 parent 629804a commit 029f557

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

tests/test-queue-impl.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66

77
// Define thread-safe features before including TaskScheduler
88
// defined in the test.yml
9-
#define _TASK_HEADER_AND_CPP
10-
#define _TASK_THREAD_SAFE
11-
#define _TASK_STATUS_REQUEST
12-
#define _TASK_TIMEOUT_TASK_THREAD_SAFE
9+
10+
// #define _TASK_HEADER_AND_CPP
11+
// #define _TASK_THREAD_SAFE
12+
// #define _TASK_STATUS_REQUEST
13+
// #define _TASK_TIMEOUT_TASK_THREAD_SAFE
1314

1415
#include "test-queue-impl.h"
1516
#include "TaskSchedulerDeclarations.h"

tests/test-queue-impl.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
#include <cstddef>
88

9-
#define _TASK_HEADER_AND_CPP
10-
#define _TASK_THREAD_SAFE
11-
#define _TASK_STATUS_REQUEST
12-
#define _TASK_TIMEOUT_TASK_THREAD_SAFE
9+
// #define _TASK_HEADER_AND_CPP
10+
// #define _TASK_THREAD_SAFE
11+
// #define _TASK_STATUS_REQUEST
12+
// #define _TASK_TIMEOUT_TASK_THREAD_SAFE
1313

1414
#include "TaskSchedulerDeclarations.h"
1515

tests/test-scheduler-thread-safe.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
// - Simulates ISR context using thread-local storage
1616
// - Compatible with Google Test framework on Ubuntu
1717

18-
#define _TASK_HEADER_AND_CPP
19-
#define _TASK_THREAD_SAFE
20-
#define _TASK_STATUS_REQUEST
21-
#define _TASK_TIMEOUT
18+
// #define _TASK_HEADER_AND_CPP
19+
// #define _TASK_THREAD_SAFE
20+
// #define _TASK_STATUS_REQUEST
21+
// #define _TASK_TIMEOUT
2222

2323
#include <gtest/gtest.h>
2424
#include "Arduino.h"

0 commit comments

Comments
 (0)