[LTP] [PATCH RFC 0/2] Refactor test state handling and clarify naming in LTP
Li Wang
liwang@redhat.com
Tue May 13 08:55:13 CEST 2025
This patch series introduces two improvements to the test infrastructure:
1: Introduce shared struct context for runtime test state
This refactor consolidates scattered global runtime state variables
into a single struct context, which is stored in a new struct ipc_region.
This change is aimed at improving test robustness and maintainability
by enabling structured state sharing between parent and child processes,
particularly for tests requiring checkpointing or fork/exec workflows.
2: Rename tid to tcid
This is a simple but meaningful rename to avoid confusion between thread
ID (tid) and test case ID (tcid). This improves code clarity and avoids
misinterpretation during code review.
CI Job: https://github.com/wangli5665/ltp/actions/runs/14989986133
Also manually tested by myself on RHEL-10.
Note: this series based on the patches:
https://lists.linux.it/pipermail/ltp/2025-May/043493.html
https://lists.linux.it/pipermail/ltp/2025-May/043494.html
Li Wang (2):
lib: rename tid to tcid
lib: moves test infrastructure states into a shared context structure
lib/tst_test.c | 249 ++++++++++++++++++++++++++++---------------------
1 file changed, 142 insertions(+), 107 deletions(-)
--
2.49.0
More information about the ltp
mailing list