[LTP] [PATCH v3 0/4] test_macros: Add TST_EXP_PASS_OR_FAIL()

Petr Vorel pvorel@suse.cz
Tue Aug 11 17:51:58 CEST 2026


Changes v2->v3:
* Remove TST_EXP_FD_OR_FAIL_() and TST_EXP_PASS_OR_FAIL_() (Cyril, Li)
* Actually use TST_EXP_PASS_OR_FAIL() in in few tests

Link to v2:
https://lore.kernel.org/ltp/20260710083337.1185184-1-pvorel@suse.cz/#r
https://patchwork.ozlabs.org/project/ltp/list/?series=513131&state=*

Petr Vorel (4):
  test macros: Fix TST_EXP_FD_OR_FAIL()
  test_macros: Add TST_EXP_PASS_OR_FAIL()
  tree: Use TST_EXP_PASS_OR_FAIL() and TST_EXP_FD_OR_FAIL()
  test_macros*.c: Simplify with macros macros

 include/tst_test_macros.h                     |  62 +++++++--
 lib/newlib_tests/test_macros01.c              |  57 +++++---
 lib/newlib_tests/test_macros03.c              |  42 +++---
 lib/newlib_tests/test_macros04.c              |  58 --------
 lib/newlib_tests/test_macros06.c              |  32 +++--
 testcases/kernel/syscalls/access/access01.c   |   9 +-
 .../kernel/syscalls/arch_prctl/arch_prctl01.c |   9 +-
 testcases/kernel/syscalls/bind/bind01.c       |   9 +-
 .../kernel/syscalls/epoll_ctl/epoll_ctl06.c   |  12 +-
 .../syscalls/finit_module/finit_module01.c    |   7 +-
 .../syscalls/init_module/init_module01.c      |   7 +-
 .../kernel/syscalls/landlock/landlock08.c     |  18 +--
 .../kernel/syscalls/landlock/landlock09.c     |  10 +-
 .../kernel/syscalls/landlock/landlock10.c     |   8 +-
 .../syscalls/landlock/landlock_tester.h       | 129 ++++++------------
 15 files changed, 195 insertions(+), 274 deletions(-)
 delete mode 100644 lib/newlib_tests/test_macros04.c

-- 
2.55.0



More information about the ltp mailing list