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>
This commit is contained in:
Yiqian Xun 2025-02-21 11:35:55 +08:00 committed by Shuah Khan
parent e35896f236
commit e402c70856
1 changed files with 2 additions and 0 deletions

View File

@ -127,6 +127,8 @@ static int parse_abi(int *check, const char *value)
close(fd);
wait_for_delete();
return ret;
}