Skip to content

Commit 47d2752

Browse files
committed
Testing: thread safe unit test updates
1 parent 3dca769 commit 47d2752

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/test-queue-impl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
// Define thread-safe features before including TaskScheduler
88
// defined in the test.yml
9+
#include "test-queue-impl.h"
910
#include "TaskSchedulerDeclarations.h"
1011

1112
#include <thread>
@@ -21,7 +22,7 @@
2122
std::queue<_task_request_t> taskRequestQueue;
2223
std::mutex queueMutex;
2324
std::condition_variable queueCV;
24-
const size_t MAX_QUEUE_SIZE = 100;
25+
2526

2627
/**
2728
* @brief Enqueue a task request (Linux implementation)

tests/test-queue-impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ void clearTaskRequestQueue();
1111
size_t getQueueSize();
1212

1313
// Maximum queue size constant
14-
extern const size_t MAX_QUEUE_SIZE;
14+
#define MAX_QUEUE_SIZE 100
1515

1616
bool _task_dequeue_request(_task_request_t* req);
1717
bool _task_enqueue_request(_task_request_t* req);

0 commit comments

Comments
 (0)