]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/user_events: Fix failures caused by test code
authorYiqian Xun <xunyiqian@kylinos.cn>
Fri, 21 Feb 2025 03:35:55 +0000 (11:35 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 24 Feb 2025 23:37:17 +0000 (16:37 -0700)
commite402c70856a37526594ae4d74a93d37a04030a2a
treecc6612ca7f067362b3d84eb30c4bf5a9225f9cc5
parente35896f236f29229c68c68fd3fe49700e9ce9951
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>
tools/testing/selftests/user_events/dyn_test.c