Skip to content

Commit

Permalink
selftests/user_events: Fix failures caused by test code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yiqian Xun authored and Shuah Khan committed Feb 24, 2025
1 parent e35896f commit e402c70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/testing/selftests/user_events/dyn_test.c
Original file line number Diff line number Diff line change
@@ -127,6 +127,8 @@ static int parse_abi(int *check, const char *value)

close(fd);

wait_for_delete();

return ret;
}

0 comments on commit e402c70

Please sign in to comment.