Skip to content

Commit

Permalink
update tests to reflect fix
Browse files Browse the repository at this point in the history
  • Loading branch information
carolynzech committed Aug 5, 2024
1 parent 66a40c9 commit 61515b6
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
6 changes: 1 addition & 5 deletions tests/std-checks/core/mem.expected
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
Checking harness mem::verify::check_swap_unit...

Failed Checks: ptr NULL or writable up to size

Summary:
Verification failed for - mem::verify::check_swap_unit
Complete - 6 successfully verified harnesses, 1 failures, 7 total.
Complete - 7 successfully verified harnesses, 0 failures, 7 total.
3 changes: 1 addition & 2 deletions tests/std-checks/core/ptr.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
Summary:
Verification failed for - ptr::verify::check_replace_unit
Verification failed for - ptr::verify::check_as_ref_dangling
Complete - 4 successfully verified harnesses, 2 failures, 6 total.
Complete - 5 successfully verified harnesses, 1 failures, 6 total.
2 changes: 0 additions & 2 deletions tests/std-checks/core/src/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ mod verify {
contracts::swap(&mut x, &mut y)
}

/// FIX-ME: Modifies clause fail with pointer to ZST.
/// <https://github.com/model-checking/kani/issues/3181>
#[kani::proof_for_contract(contracts::swap)]
pub fn check_swap_unit() {
let mut x: () = kani::any();
Expand Down
2 changes: 0 additions & 2 deletions tests/std-checks/core/src/ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ mod verify {
let _rf = unsafe { contracts::as_ref(&non_null) };
}

/// FIX-ME: Modifies clause fail with pointer to ZST.
/// <https://github.com/model-checking/kani/issues/3181>
#[kani::proof_for_contract(contracts::replace)]
pub fn check_replace_unit() {
check_replace_impl::<()>();
Expand Down

0 comments on commit 61515b6

Please sign in to comment.