[LTP] [PATCH V2 04/10] syscalls/fsopen: New tests
Petr Vorel
pvorel@suse.cz
Thu Feb 20 09:51:29 CET 2020
Hi,
> > +static struct tcase {
> > + char *name;
> > + unsigned int flags;
> > +} tcases[] = {
> > + {"Flag 0", 0},
> > + {"Flag FSOPEN_CLOEXEC", FSOPEN_CLOEXEC},
> Maybe better to remove the 'Flag' keywords from here and add it to the
> print sentence.
+1. BTW if you remove bogus text, you can use macro to not repeat the flag,
see testcases/kernel/syscalls/clock_nanosleep/clock_nanosleep01.c
#define TYPE_NAME(x) .ttype = x, .desc = #x
(just a suggestion, nothing really important)
> > +static void run(unsigned int n)
> > +{
> > ...
> > +
> > + if (!tst_ismount(MNTPOINT))
> > + tst_res(TPASS, "%s: fsopen() passed", tc->name);
> tst_res(TPASS, "Flag %s: fsopen() passed", tc->name);
Kind regards,
Petr
More information about the ltp
mailing list