]> granicus.if.org Git - strace/commit
tests: extend coverage of syslog tests
authorBharath Vedartham <linux.bhar@gmail.com>
Thu, 28 Feb 2019 12:51:13 +0000 (18:21 +0530)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 16 Jul 2019 11:41:18 +0000 (11:41 +0000)
commit4355057cc82d927c76acc858d956b451f74f4363
tree13fc650adb102c0eeb4c6abf79cb05ef92eb67ec
parentdbbf02e8ec156024558db64b99841d2deab5cc12
tests: extend coverage of syslog tests

The current syslog test covers only those cases where the type parameter
is one of SYSLOG_ACTION_READ, SYSLOG_ACTION_READ_ALL,
SYSLOG_ACTION_READ_CLEAR as per codecov.

Add test case to cover the default case.

* tests/syslog.c (SYSLOG_ACTION_SIZE_BUFFER): New macro.
(main): Check SYSLOG_ACTION_SIZE_BUFFER decoding.

Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
tests/syslog.c