Re: [PATCH v5 2/2] selftest: add tests for O_EMPTYPATH
From: Christian Brauner
Date: Mon May 11 2026 - 06:32:47 EST
On Fri, 24 Apr 2026 13:46:03 +0200, Jori Koolstra <jkoolstra@xxxxxxxxx> wrote:
> diff --git a/tools/testing/selftests/filesystems/openat2/emptypath_test.c b/tools/testing/selftests/filesystems/openat2/emptypath_test.c
> new file mode 100644
> index 000000000000..d75b5e998ff9
> --- /dev/null
> +++ b/tools/testing/selftests/filesystems/openat2/emptypath_test.c
> @@ -0,0 +1,55 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> +
> +#define __SANE_USERSPACE_TYPES__
> +#include <fcntl.h>
> +#include <unistd.h>
> +#include <errno.h>
> +
> +#include "kselftest.h"
> +
> +#ifndef O_EMPTYPATH
> +#define O_EMPTYPATH (1 << 26)
> +#endif
> +
> +int main(void)
> +{
Aleksa migrated the openat2() selftests to use the TEST*() framework.
Please send a follow-up path that converts your new selftest to use
TEST() as well. I'll either fold it or leave it standalone. IOW, send it
as a diff on top of vfs-7.2.misc, please.
--
Christian Brauner <brauner@xxxxxxxxxx>