From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Vorel Date: Wed, 20 Nov 2019 18:09:48 +0100 Subject: [LTP] [PATCH v3 1/5] syscalls/quotactl01.c: Add Q_GETNEXQUOTA test In-Reply-To: <989b7cbfa4cf4d7bb65c9b7df45b8c37@G08CNEXMBPEKD04.g08.fujitsu.local> References: <20191031152646.GA7078@dell5510> <1572612959-20577-1-git-send-email-xuyang2018.jy@cn.fujitsu.com> <1572612959-20577-2-git-send-email-xuyang2018.jy@cn.fujitsu.com> <20191115155123.GA658@x230> <989b7cbfa4cf4d7bb65c9b7df45b8c37@G08CNEXMBPEKD04.g08.fujitsu.local> Message-ID: <20191120170948.GA7010@dell5510> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi Xu, > >> TEST(quotactl(tc->cmd, tst_device->dev, *tc->id, tc->addr)); > >>+ if (TST_ERR == EINVAL) { > >> + tst_res(TCONF, "Current system doesn't support this cmd"); > >nit: cmd? Maybe something like "quotactl() syscall does not support this command" > >or "quotactl() syscall does not support to %s", tc->des to follow other messages. I'd actually prefer to have some macro, which prints QCMD flags, but that's a detail which we can >ignore. > I think we can add some info before each run (such as prctl02.c and copy_file_range02.c, make error cases more clear ), as below: > tst_res(TINFO, "Test #%d: %s", n, tc->tname); // this tname is a QCMD_string +1. It could use similar approach as it's in testcases/kernel/syscalls/mbind/mbind01.c #define POLICY_DESC(x) .policy = x, .desc = #x #define POLICY_DESC_TEXT(x, y) .policy = x, .desc = #x" ("y")" static struct test_case tcase[] = { { POLICY_DESC(MPOL_DEFAULT), ... }, { POLICY_DESC_TEXT(MPOL_DEFAULT, "target exists"), But I'd prefer to have it as a separate patch after v4 of this patchset is merged. I'd prefer to finish v4 (I've already fixed small formatting things, I can fix the rest of needed things myself). Kind regards, Petr