diff options
Diffstat (limited to 'test/tx/cmake/module_qemu/tests/harness_checks.h')
| -rw-r--r-- | test/tx/cmake/module_qemu/tests/harness_checks.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/test/tx/cmake/module_qemu/tests/harness_checks.h b/test/tx/cmake/module_qemu/tests/harness_checks.h new file mode 100644 index 00000000..19ad68ae --- /dev/null +++ b/test/tx/cmake/module_qemu/tests/harness_checks.h @@ -0,0 +1,45 @@ +/*************************************************************************** + * 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. + * + * AI Disclosure: This file was largely AI-generated by Claude Code (Opus 5.5). + * The AI-generated portions may be considered public domain (CC0-1.0) + * and not subject to the project's licence. The human contributor has + * reviewed and verified that the code is correct. + * + * SPDX-License-Identifier: MIT and CC0-1.0 + **************************************************************************/ + + +/**************************************************************************/ +/**************************************************************************/ +/** */ +/** ThreadX Test */ +/** */ +/** Module execution harness: checks shared by the test images */ +/** */ +/**************************************************************************/ +/**************************************************************************/ + +#ifndef HARNESS_CHECKS_H +#define HARNESS_CHECKS_H + +#include "harness.h" +#include "module_shared.h" + +/* CONTROL.nPRIV: set when a thread runs unprivileged. */ +#define CONTROL_NPRIV ((ULONG) 1UL) + +/* The module's sleep must have lasted at least this many ticks. */ +#define EXPECTED_SLEEP_TICKS ((ULONG) 5UL) + +/* The kernel services part of the test module, common to every image. */ +VOID harness_check_services(ULONG cycle); + +/* Available bytes in the Module Manager's pool. */ +ULONG harness_module_pool_available(VOID); + +#endif |
