test: change the type used in this test
PATCH 4/4 test: change the type used in this test
The type that was used in this test changed to no longer provide the member we were counting on. Changed it to use a type that has been in the kernel since 4.10 and has only seen a single change since.
Signed-off-by Kris Van Hees <[email protected]>
--- test/unittest/types/tst.nested-unnamed-structs.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
test/unittest/types/tst.nested-unnamed-structs.d +3 -3
@@ -16,17 +16,17 @@ #pragma D option quiet dtrace:::BEGIN { - printf("offset is %i\n", offsetof(struct rds`rds_message, atomic)); + printf("offset is %i\n", offsetof(struct `flow_dissector_key_icmp, code)); } dtrace:::BEGIN -/ offsetof(struct rds`rds_message, atomic) == 0 / +/ offsetof(struct `flow_dissector_key_icmp, code) == 0 / { exit(1); } dtrace:::BEGIN -/ offsetof(struct rds`rds_message, atomic) != 0 / +/ offsetof(struct `flow_dissector_key_icmp, code) != 0 / { exit(0); }
Signature · 1 line
2.52.0