[LTP] [PATCH v2 1/2] syscalls/sched_getparam{01, 02}: Convert to new API and cleanup
Cyril Hrubis
chrubis@suse.cz
Fri Jan 29 14:21:48 CET 2021
Hi!
> + if (param.sched_priority) {
> + tst_res(TFAIL,
> + "sched_getparam(%d) got wrong sched_priority %d, expected 0",
> + pids[n], param.sched_priority);
> + exit(1);
I do not think that we should do exit(1) here, since that would cause
TBROK in the library when we reap the children. The failure is
propagated by the tst_res(TFAIL, ...) here already.
With the exit(1) replaced by exit(0):
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list