]> granicus.if.org Git - strace/commit
tests: use check_quota for invalid quotactl commands
authorZhibin Li <08826794brmt@gmail.com>
Thu, 12 Jul 2018 09:32:12 +0000 (17:32 +0800)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 15 Jul 2018 18:51:09 +0000 (18:51 +0000)
commit7a4582e357d99d9d53a53f707f81033597758ee5
treedd4f5b3378735e65c73a92875e8c75d1b894a068
parentf23ff6cebf0ca8177e3f10c49817397092936912
tests: use check_quota for invalid quotactl commands

Use check_quota function for invalid commands instead of manual quotactl
syscall invocations. In this way successful injection can also be checked
for these commands in the next commit.

* tests/quotactl.c (main): Add invalid_cmd_str and invalid_id_str local
variables, remove unused variable rc, use check_quota instead of manual
quotactl syscall invocations.
* tests/quotaclt.c (main): Add invalid_cmd_str variable, remove unused
variable rc, use check_quota instead of manual quotactl syscall invocations.
tests/quotactl-xfs.c
tests/quotactl.c