Skip to content

Commit

Permalink
Remove tests that are no longer feasible
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Apr 26, 2024
1 parent e098d8a commit 1c75d72
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions library/kani/src/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ where
if sz == 0 {
true // ZST pointers are always valid
} else {
// Note that this branch can't be tested in concrete execution as `is_read_ok` needs to be
// stubbed.
crate::assert(
is_read_ok(thin_ptr, sz),
"Expected valid pointer, but found dangling pointer",
Expand Down Expand Up @@ -247,18 +249,6 @@ mod tests {
assert_valid_ptr(vec_ptr);
}

#[test]
#[should_panic(expected = "Expected valid pointer, but found dangling pointer")]
fn test_dangling_char() {
test_dangling_of_t::<char>();
}

#[test]
#[should_panic(expected = "Expected valid pointer, but found dangling pointer")]
fn test_dangling_slice() {
test_dangling_of_t::<&str>();
}

#[test]
#[should_panic(expected = "Expected valid pointer, but found `null`")]
fn test_null_fat_ptr() {
Expand Down

0 comments on commit 1c75d72

Please sign in to comment.