RFC Refactor test state handling and clarify naming in LTP
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | lib: rename tid to tcidlib/ | +6 | 1 reply | |
| 2/2 | lib: moves test infrastructure states into a shared context structurelib/ | +136 | 1 reply |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Petr Vorel |
|---|---|
| 1/2 | R-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [LTP] [PATCH RFC 0/2] Refactor test state handling and clarify naming in LTP
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(-)
Signature · 5 lines
2.49.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp