Skip to contentSkip to conversation

test: change the type used in this test

PATCH New Kris Van Hees 1 participant 1 message Nov 9

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index 08146785..0e3df66a 100644
@@ -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