[LTP] [PATCH v2 14/16] syscalls/sched_setscheduler03: use libc/sys_sched_*()

Cyril Hrubis chrubis@suse.cz
Mon Aug 9 14:35:50 CEST 2021


Hi!
>  	tst_res(TINFO, "Setting init sched policy to SCHED_OTHER");
> -	if (sched_setscheduler(0, SCHED_OTHER, &param[0]) != 0)
> -		tst_res(TFAIL | TERRNO,
> -			 "ERROR sched_setscheduler: (0, SCHED_OTHER, param)");
> -
> -	if (sched_getscheduler(0) != SCHED_OTHER)
> +	TST_EXP_PASS_SILENT(tv->sched_setscheduler(0, SCHED_OTHER, &param[0]),
> +			    "sched_setscheduler(0, SCHED_OTHER, 0)");

Here as well, we shouldn't use TST_EXP_PASS* in the test setup().

Other than that:

Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list