Skip to content

Commit e402c70

Browse files
Yiqian Xunshuahkh
authored andcommitted
selftests/user_events: Fix failures caused by test code
In parse_abi function,the dyn_test fails because the enable_file isn’t closed after successfully registering an event. By adding wait_for_delete(), the dyn_test now passes as expected. Link: https://lore.kernel.org/r/20250221033555.326716-1-realxxyq@163.com Signed-off-by: Yiqian Xun <xunyiqian@kylinos.cn> Acked-by: Beau Belgrave <beaub@linux.microsoft.com> Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent e35896f commit e402c70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/testing/selftests/user_events/dyn_test.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ static int parse_abi(int *check, const char *value)
127127

128128
close(fd);
129129

130+
wait_for_delete();
131+
130132
return ret;
131133
}
132134

0 commit comments

Comments
 (0)