From 76f2e4e2170f80509ca967ca74f3c3a12ba9d3cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Ko=C5=82odziej?= Date: Mon, 22 Sep 2025 10:45:38 +0200 Subject: [PATCH] Enable checksum tests if checksum feature is on These tests fail if checksum feature is turned off. --- core/storage/checksum.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/storage/checksum.rs b/core/storage/checksum.rs index 74cb2d518..8aa16fadc 100644 --- a/core/storage/checksum.rs +++ b/core/storage/checksum.rs @@ -107,6 +107,7 @@ mod tests { } #[test] + #[cfg(feature = "checksum")] fn test_add_checksum_to_page() { let ctx = ChecksumContext::new(); let mut page = get_random_page(); @@ -135,6 +136,7 @@ mod tests { } #[test] + #[cfg(feature = "checksum")] fn test_verify_and_strip_checksum_mismatch() { let ctx = ChecksumContext::new(); let mut page = get_random_page(); @@ -160,6 +162,7 @@ mod tests { } #[test] + #[cfg(feature = "checksum")] fn test_verify_and_strip_checksum_corrupted_checksum() { let ctx = ChecksumContext::new(); let mut page = get_random_page();