All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] selftests/user_events: Fix failures caused by test code
@ 2025-02-21  3:35 realxxyq
  2025-02-21 15:46 ` Shuah Khan
  0 siblings, 1 reply; 6+ messages in thread
From: realxxyq @ 2025-02-21  3:35 UTC (permalink / raw)
  To: shuah; +Cc: linux-kselftest, linux-kernel, Yiqian Xun

From: Yiqian Xun <xunyiqian@kylinos.cn>

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.

Signed-off-by: Yiqian Xun <xunyiqian@kylinos.cn>
---
 tools/testing/selftests/user_events/dyn_test.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/testing/selftests/user_events/dyn_test.c b/tools/testing/selftests/user_events/dyn_test.c
index bdf9ab127488..54c9412f8dee 100644
--- a/tools/testing/selftests/user_events/dyn_test.c
+++ b/tools/testing/selftests/user_events/dyn_test.c
@@ -127,6 +127,8 @@ static int parse_abi(int *check, const char *value)
 
 	close(fd);
 
+	wait_for_delete();
+
 	return ret;
 }
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-02-24 23:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-21  3:35 [PATCH v1] selftests/user_events: Fix failures caused by test code realxxyq
2025-02-21 15:46 ` Shuah Khan
2025-02-21 17:28   ` Steven Rostedt
2025-02-24 19:21     ` Beau Belgrave
2025-02-24 19:26       ` Steven Rostedt
2025-02-24 23:39         ` Shuah Khan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.