]> granicus.if.org Git - strace/commit
tests: extend coverage for other fcntl flags
authorZhibin Li <08826794brmt@gmail.com>
Thu, 12 Jul 2018 06:49:42 +0000 (14:49 +0800)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 12 Jul 2018 08:51:04 +0000 (08:51 +0000)
commitfd5765aad8d57b0b0893efe88a097908847c4ba4
tree1210ecf0c447361c484931d08628e15526f56d15
parent048d1885fa156d91674d583346e3f1960f87c1e1
tests: extend coverage for other fcntl flags

* tests/fcntl-common.c: Include <assert.h>.
(struct fcntl_cmd_check): New structure.
(print_retval_flags, test_other_set_cmd, test_other_get_cmd,
print_flags_getfd, print_flags_getsig, print_flags_getlease,
test_fcntl_others): New functions.
(main): Use test_fcntl_others.
tests/fcntl-common.c