[LTP] [PATCH v12 0/2] Subject: [PATCH v12] statx13: Add STATX_WRITE_ATOMIC test and helper macros

Gaurav Pathak gpathak@suse.de
Tue Nov 24 07:01:25 CET 2026


This series adds a new statx13 test to verify STATX_WRITE_ATOMIC
reporting and introduces reusable less-than and power-of-2 assertion
macros in tst_test_macros.h.

Changes in v12:
- include/tst_test_macros.h:
  - Add TST_EXP_LT_LU() and TST_EXP_LT_LU_SILENT() macros for less-than
    comparisons on unsigned long long values.
  - Add TST_EXP_POW2_LU() and TST_EXP_POW2_LU_SILENT() macros to verify
    that an unsigned long long value is a non-zero power of 2.
- statx13:
  - Replace manual TST_EXP_EXPR() and if/else validation checks with
    TST_EXP_LE_LU(), TST_EXP_LT_LU(), and TST_EXP_POW2_LU().
  - Shorten TCONF and TFAIL diagnostic messages in verify_statx() and
    setup().
  - Remove redundant explanatory comments in setup().
  - Drop redundant .needs_tmpdir = 1 from struct tst_test.

Signed-off-by: Gaurav Pathak <gaurav.pathak@suse.com>
---
Gaurav Pathak (2):
      syscalls/statx13: Add test for STATX_WRITE_ATOMIC on regular file
      statx13: Add LT/POW2 macros in tst_test_macros.h and simplify statx13 checks

 include/lapi/stat.h                        |  17 +-
 include/tst_test_macros.h                  | 111 +++++++++++
 runtest/syscalls                           |   1 +
 testcases/kernel/syscalls/statx/.gitignore |   1 +
 testcases/kernel/syscalls/statx/statx13.c  | 296 +++++++++++++++++++++++++++++
 5 files changed, 425 insertions(+), 1 deletion(-)
---
base-commit: 3b962a950b3f37153a45bf1240d07d73ab07676e
change-id: 20261124-statx-atomic-write-14269476dc39

Best regards,
-- 
Gaurav Pathak <gaurav.pathak@suse.com>



More information about the ltp mailing list