selftests/user_events: Test struct size match cases
authorBeau Belgrave <beaub@linux.microsoft.com>
Thu, 29 Jun 2023 23:50:49 +0000 (23:50 +0000)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 12 Jul 2023 16:04:47 +0000 (12:04 -0400)
commit769e637276c294c2254f698e6a57eda771deb3f7
tree21ec668929dddb46e21d87558d36f493f9b7b7d1
parentd0a3022f30629a208e5944022caeca3568add9e7
selftests/user_events: Test struct size match cases

The self tests for user_events currently does not ensure that the edge
case for struct types work properly with size differences.

Add cases for mis-matching struct names and sizes to ensure they work
properly.

Link: https://lkml.kernel.org/r/20230629235049.581-3-beaub@linux.microsoft.com
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: linux-kselftest@vger.kernel.org
Signed-off-by: Beau Belgrave <beaub@linux.microsoft.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/testing/selftests/user_events/dyn_test.c