Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e65ccf4

Browse files
committedOct 3, 2023
aml: Fix tests not building with IndexField
1 parent 6c7f593 commit e65ccf4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

Diff for: ‎aml/src/test_utils.rs

+12
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,18 @@ pub(crate) fn crudely_cmp_values(a: &AmlValue, b: &AmlValue) -> bool {
158158
}
159159
_ => false,
160160
},
161+
AmlValue::IndexField { index, data, flags, offset, length } => match b {
162+
AmlValue::IndexField {
163+
index: b_index,
164+
data: b_data,
165+
flags: b_flags,
166+
offset: b_offset,
167+
length: b_length,
168+
} => {
169+
index == b_index && data == b_data && flags == b_flags && offset == b_offset && length == b_length
170+
}
171+
_ => false,
172+
},
161173
AmlValue::Device => match b {
162174
AmlValue::Device => true,
163175
_ => false,

0 commit comments

Comments
 (0)
Please sign in to comment.