On Fri, Sep 4, 2026 at 12:38 PM Luis Henriques <[email protected]> wrote: > > The control filesystem for FUSE needs to be mounted for the fusectl_test to > be successfully run. Skip the test is that is not the case. > > Signed-off-by: Luis Henriques <[email protected]>
Reviewed-by: Amir Goldstein <[email protected]> > --- > tools/testing/selftests/filesystems/fuse/fusectl_test.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/filesystems/fuse/fusectl_test.c > b/tools/testing/selftests/filesystems/fuse/fusectl_test.c > index 0d1d012c35ed..b828173c01bd 100644 > --- a/tools/testing/selftests/filesystems/fuse/fusectl_test.c > +++ b/tools/testing/selftests/filesystems/fuse/fusectl_test.c > @@ -106,8 +106,15 @@ TEST_F(fusectl, abort) > char path_buf[PATH_MAX]; > int abort_fd, test_fd, ret; > > - sprintf(path_buf, "/sys/fs/fuse/connections/%d/abort", > self->connection); > + snprintf(path_buf, PATH_MAX, "%s/%d", FUSECTL_MOUNTPOINT, > + self->connection); > + if (access(path_buf, F_OK) != 0) > + SKIP(return, > + "fusectl doesn't seem to be mounted: %s", > + strerror(errno)); > > + snprintf(path_buf, PATH_MAX, "%s/%d/abort", FUSECTL_MOUNTPOINT, > + self->connection); > ASSERT_EQ(0, access(path_buf, F_OK)); > > abort_fd = open(path_buf, O_WRONLY);

