Skip to content

Commit

Permalink
Check for deallocation in message_from_boxed_slice test
Browse files Browse the repository at this point in the history
  • Loading branch information
kalcutter committed Jul 10, 2020
1 parent 2b9bb43 commit 93e7a9f
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 93e7a9f

Please sign in to comment.