Test: placed views keep the resource description's padding words as zero
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
144aca0faa
commit
8bff6c21b9
1 file changed
+3
-2
@@ -2210,8 +2210,9 @@ mod tests {
|
||||
let null = std::ptr::null();
|
||||
let slots = [0u64; 4];
|
||||
let at = slots.as_ptr() as u64;
|
||||
// A resource description and a view no other test uses.
|
||||
let resource: [u32; 14] = std::array::from_fn(|k| 0x5ee0_0000 + k as u32);
|
||||
// A resource description and a view no other test uses; words 1 and
|
||||
// 13 are the description's padding, which placed views keep as zero.
|
||||
let resource: [u32; 14] = std::array::from_fn(|k| if k == 1 || k == 13 { 0 } else { 0x5ee0_0000 + k as u32 });
|
||||
let mut desc: [u32; 16] = std::array::from_fn(|k| 0x7a70_0000 + k as u32);
|
||||
let mine = |v: &View| match v {
|
||||
View::Constant(address, _) => (0x6_0000_0000..0x6_1000_0000).contains(address),
|
||||
|
||||
Reference in new issue
Block a user