[LTP] [PATCH V2 04/10] syscalls/fsopen: New tests
Li Wang
liwang@redhat.com
Thu Feb 20 06:23:03 CET 2020
On Wed, Feb 19, 2020 at 5:28 PM Viresh Kumar <viresh.kumar@linaro.org>
wrote:
> ...
> --- /dev/null
> +++ b/testcases/kernel/syscalls/fsopen/fsopen01.c
> @@ -0,0 +1,85 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> +/*
> + * Copyright (c) 2020 Viresh Kumar <viresh.kumar@linaro.org>
> + *
> + * Description:
> + * Basic fsopen() test which tries to configure and mount the filesystem
> as
> + * well.
> + */
> +#include "tst_test.h"
> +#include "lapi/fsmount.h"
> +
> +#define MNTPOINT "mntpoint"
> +
> +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.
> +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);
--
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20200220/b99343b4/attachment.htm>
More information about the ltp
mailing list