summaryrefslogtreecommitdiff
path: root/test/tx/regression/threadx_initialize_kernel_setup_test.c
diff options
context:
space:
mode:
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