[LTP] [RFC PATCH 3/9] syscalls/ipc: Rewrite msgctl01 + merge msgctl06
Petr Vorel
pvorel@suse.cz
Wed Jun 13 13:24:12 CEST 2018
Hi Cyril,
> Rewrite msgctl01 to be much more strict, now we assert all fields of the
> buffer we get from IPC_STAT.
> This also removes msgctl06 that was testing the very same IPC_STAT
> command but checked different subset of the msqid_ds buffer.
> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
Reviewed-by: Petr Vorel <pvorel@suse.cz>
> ---
Nice improvement :).
I guess it doesn't make sense to check msqid_ds.__msg_cbytes (and it's also nonstandard).
> + if (buf.msg_lspid == 0)
> + tst_res(TPASS, "msg_lspid = 0");
> + else
> + tst_res(TFAIL, "msg_lspid = %u", (unsigned)buf.msg_lspid);
checkpatch.pl complains about unsigned instead of unsigned int, but that's nothing we should worry about.
Kind regards,
Petr
More information about the ltp
mailing list