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/[email protected] Signed-off-by: Yiqian Xun <[email protected]> Acked-by: Beau Belgrave <[email protected]> Acked-by: Steven Rostedt (Google) <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
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)