Skip to content

Commit 5eaa51c

Browse files
committed
chore: Remove example test that wasn't executing
1 parent 1643655 commit 5eaa51c

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ tempfile = "3.18.0"
2828
name = "benchmarks"
2929
harness = false
3030

31-
# This enables examples to be treated as tests when running cargo test
3231
[[example]]
3332
name = "error-handling-basic"
3433
test = true

examples/memory-leak.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,3 @@ fn check_memory_exists_and_holds_vec_data(ptr_str: &str) -> bool {
2929
let vec_ptr = addr as *const Vec<u8>;
3030
!vec_ptr.is_null() && unsafe { std::ptr::read_volatile(vec_ptr) }.capacity() > 0
3131
}
32-
33-
// Add a smoke test to make sure this example stays working
34-
#[cfg(test)]
35-
mod example_memory_leak {
36-
use super::*;
37-
38-
#[test]
39-
fn execute_main() {
40-
main().unwrap();
41-
}
42-
}

0 commit comments

Comments
 (0)