Skip to content

Commit

Permalink
Merge pull request #310 from kalcutter/improve-message_from_boxed_sli…
Browse files Browse the repository at this point in the history
…ce-test

Check for deallocation in `message_from_boxed_slice` test
  • Loading branch information
Jasper-Bekkers authored Jan 21, 2023
2 parents ea716ce + 93e7a9f commit 4b873ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/message_from_boxed_slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ fn message_from_boxed_slice() {
let mut b: Box<[u8]> = Box::new([0u8; 42]);
CHECK_PTR.store(b.as_mut_ptr() as *mut u8, Ordering::SeqCst);
let _ = zmq::Message::from(b);
assert_eq!(CHECK_PTR.load(Ordering::SeqCst), ptr::null_mut());
}

0 comments on commit 4b873ae

Please sign in to comment.