[LTP] [PATCH] Patch:V2:creat07():Added new_behavior flag to detect kernel version > 6.11 : Tests that creat() succeeds (write to executed file allowed) Removed the old skip logic that did TCONF on kernel >= 6.11 Added one static variable exp_errno to store expected result: -1 means creat() should succeed ETXTBSY means it should fail with that errno setup() now sets exp_errno from kernel version Simplified verify_creat(): if expected is success, call creat(), close fd, print TPASS if expected is failure, use TST_EXP_FAIL2() for ETXTBSY Removed extra verbose kernel-info messages Removed exec of external child binary and replaced it with an in-process forked child using TST_CHECKPOINT_WAKE() + pause() Removed .resource_files from test

Cyril Hrubis chrubis@suse.cz
Wed May 13 14:10:36 CEST 2026


Hi!
I think the best solution is to change this test not to run on newer
kernel and write a new test that checks the new behavior. Combining the
two different expectations in a single test is going to be inherently
messy.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list