[LTP] [PATCH 2/7] syscalls/fsopen: New tests
Petr Vorel
pvorel@suse.cz
Wed Feb 19 09:23:59 CET 2020
Hi Viresh,
as somebody (probably Li) pointed out fsopen/fsopen01.c is similar to fsmount/fsmount01.c,
so please during rebase drop it. BTW for this dropped test I'd use different
approach (close fd in cleanup function and use tst_brk(TFAIL instead of
tst_res(TBROK and goto):
static void cleanup(void)
{
if (fd > 0)
SAFE_CLOSE(fd);
}
...
if (fd == -1)
tst_brk(TFAIL | TERRNO, "fsopen() failed");
Also you added autotools check for functions (e.g. fsopen) during commits, but I
move them to the first (together with lapi header).
Kind regards,
Petr
More information about the ltp
mailing list