[LTP] [PATCH v4 3/4] syscalls: lchown02: Convert to new API

Cyril Hrubis chrubis@suse.cz
Thu Aug 28 13:45:49 CEST 2025


Hi!
> -	cleanup();
> -	tst_exit();
> +	tst_res(TINFO, "%s", tc->desc);

You can pass the description to the TST_EXP_FAIL() instead.

> +	TST_EXP_FAIL(lchown(*tc->pathname, user_id, group_id), tc->exp_errno);

As:
	TST_EXP_FAI(lchown(*tc->pathname, user_id, group_id),
	            tc->exp_errno, "%s", tc->desc);


-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list