summaryrefslogtreecommitdiff
path: root/test/tx/regression/threadx_initialize_kernel_setup_test.c
diff options
context:
space:
mode:
authorFrédéric Desbiens <[email protected]>2026-06-08 10:01:32 +0200
committerGitHub <[email protected]>2026-06-08 10:01:32 +0200
commit87ab09cce305eb9cd4aacac4e8c62af72f665bff (patch)
treedd062ebbea5235d1921c64b396bf7e4ce79e9e15 /test/tx/regression/threadx_initialize_kernel_setup_test.c
parent9ab0cf9683f832cdb48e2099533a5b06a3afcd64 (diff)
parent730b61874bc5cf40768987605ae5187fde0fa1e2 (diff)
Merge pull request #544 from eclipse-threadx/devv6.5.1.202602_rel
Merging changes for the v.6.5.1.202602 release
Diffstat (limited to 'test/tx/regression/threadx_initialize_kernel_setup_test.c')
-rw-r--r--test/tx/regression/threadx_initialize_kernel_setup_test.c32
1 files changed, 17 insertions, 15 deletions
diff --git a/test/tx/regression/threadx_initialize_kernel_setup_test.c b/test/tx/regression/threadx_initialize_kernel_setup_test.c
index 2ef8e158..057ac223 100644
--- a/test/tx/regression/threadx_initialize_kernel_setup_test.c
+++ b/test/tx/regression/threadx_initialize_kernel_setup_test.c
@@ -1,6 +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 kernel setup functionality in ThreadX. */
+// Some portions generated by Codex (gpt 5.4).
#include <stdio.h>
+#include <stdlib.h>
#include "tx_api.h"
#include "tx_initialize.h"
#include "tx_thread.h"
@@ -30,20 +43,7 @@ UINT test_byte_pool_create_init;
UINT test_block_pool_create_init;
UINT test_timer_create_init;
-
-__attribute__((weak)) void abort_all_threads_suspended_on_mutex(void)
-{
-}
-
-__attribute__((weak)) void suspend_lowest_priority(void)
-{
-}
-
-__attribute__((weak)) void abort_and_resume_byte_allocating_thread(void)
-{
-}
-
-void main()
+int main(void)
{
/* Setup the ThreadX kernel. */
@@ -59,6 +59,8 @@ void main()
printf("Running Initialize Kernel Setup Test................................ ERROR!\n");
exit(1);
}
+
+ return(0);
}
void test_application_define(void *first_unused_memory){}
@@ -78,4 +80,4 @@ void delete_timer_thread(void)
_tx_thread_delete(&_tx_timer_thread);
}
-#endif \ No newline at end of file
+#endif