Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion account-view/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -743,10 +743,11 @@ mod tests {
fn test_borrow() {
// 8-bytes aligned account data + 8 bytes of trailing data.
let mut data = [0u64; size_of::<RuntimeAccount>() / size_of::<u64>() + 1];
data[0] = NOT_BORROWED as u64;

let account = data.as_mut_ptr() as *mut RuntimeAccount;
unsafe { (*account).data_len = 8 };

data[0] = NOT_BORROWED as u64;
let account_view = AccountView { raw: account };

// Check that we can borrow data and lamports.
Expand Down
2 changes: 1 addition & 1 deletion scripts/test-miri.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ here="$(dirname "$0")"
src_root="$(readlink -f "${here}/..")"
cd "${src_root}"
# miri is very slow; so only run very few of selective tests!
./cargo nightly miri test -p solana-hash -p solana-account-info
./cargo nightly miri test -p solana-hash -p solana-account-info -p solana-account-view