Re: [PATCH] selftests: Add functional test for the abort file in fusectl

2025-05-18 Thread Amir Goldstein
On Mon, May 19, 2025 at 7:58 AM Chen Linxuan wrote: > > On Thu, May 15, 2025 at 6:27 PM Amir Goldstein wrote: > > > > On Thu, May 15, 2025 at 9:35 AM Chen Linxuan > > wrote: > > > > > > + ret = read(test_fd, path_buf, sizeof(path_buf)); > > > + ASSERT_LT(ret, 0); > > > > Nice! > > I

Re: [PATCH] selftests: Add functional test for the abort file in fusectl

2025-05-18 Thread Chen Linxuan
On Thu, May 15, 2025 at 6:27 PM Amir Goldstein wrote: > > On Thu, May 15, 2025 at 9:35 AM Chen Linxuan > wrote: > > > > + ret = read(test_fd, path_buf, sizeof(path_buf)); > > + ASSERT_LT(ret, 0); > > Nice! > I guess you could also verify errno == ENOTCONN or whatever it is > in this

Re: [PATCH] selftests: Add functional test for the abort file in fusectl

2025-05-15 Thread Amir Goldstein
On Thu, May 15, 2025 at 9:35 AM Chen Linxuan wrote: > > This patch add a simple functional test for the "about" file > in fusectlfs (/sys/fs/fuse/connections/ID/about). > > A simple fuse daemon is added for testing. > > Related discussion can be found in the link below. > > Link: > https://lore.k

[PATCH] selftests: Add functional test for the abort file in fusectl

2025-05-15 Thread Chen Linxuan
This patch add a simple functional test for the "about" file in fusectlfs (/sys/fs/fuse/connections/ID/about). A simple fuse daemon is added for testing. Related discussion can be found in the link below. Link: https://lore.kernel.org/all/CAOQ4uxjKFXOKQxPpxtS6G_nR0tpw95w0GiO68UcWg_OBhmSY=q...@m

Re: [PATCH] selftests: Add functional test for the abort file in fusectl

2025-05-15 Thread Chen Linxuan
On Thu, May 15, 2025 at 3:35 PM Chen Linxuan wrote: > This patch add a simple functional test for the "about" file Sorry for the typo, it should be "abort".