summaryrefslogtreecommitdiff
path: root/test/smp/regression/threadx_block_memory_suspension_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/smp/regression/threadx_block_memory_suspension_test.c')
-rw-r--r--test/smp/regression/threadx_block_memory_suspension_test.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/test/smp/regression/threadx_block_memory_suspension_test.c b/test/smp/regression/threadx_block_memory_suspension_test.c
index da14f454..fb68a6f9 100644
--- a/test/smp/regression/threadx_block_memory_suspension_test.c
+++ b/test/smp/regression/threadx_block_memory_suspension_test.c
@@ -1,7 +1,19 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test is designed to test suspension on memory block pools. */
#include <stdio.h>
#include "tx_api.h"
+#include "threadx_test_port.h"
static unsigned long thread_0_counter = 0;
static TX_THREAD thread_0;
@@ -83,8 +95,8 @@ CHAR *pointer;
}
/* Create block pool. */
- status = tx_block_pool_create(&pool_0, "pool 0", 100, pointer, 320);
- pointer = pointer + 320;
+ status = tx_block_pool_create(&pool_0, "pool 0", 100, pointer, TX_TEST_BLOCK_POOL_BYTES(100, 3));
+ pointer = pointer + TX_TEST_BLOCK_POOL_BYTES(100, 3);
/* Check status. */
if (status != TX_SUCCESS)
@@ -308,4 +320,3 @@ CHAR *pointer_1;
}
}
-