We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0a3022 commit 769e637Copy full SHA for 769e637
tools/testing/selftests/user_events/dyn_test.c
@@ -217,6 +217,18 @@ TEST_F(user, matching) {
217
/* Types don't match */
218
TEST_NMATCH("__test_event u64 a; u64 b",
219
"__test_event u32 a; u32 b");
220
+
221
+ /* Struct name and size matches */
222
+ TEST_MATCH("__test_event struct my_struct a 20",
223
+ "__test_event struct my_struct a 20");
224
225
+ /* Struct name don't match */
226
+ TEST_NMATCH("__test_event struct my_struct a 20",
227
+ "__test_event struct my_struct b 20");
228
229
+ /* Struct size don't match */
230
231
+ "__test_event struct my_struct a 21");
232
}
233
234
int main(int argc, char **argv)
0 commit comments