interplane.Get Omega
Read in your language

synapse

A component of the AienOS ecosystem.

Brought by drakestapleton

branch main Branches Tags History

synapse / evidence / r1-raw-block-store / red-green / mutation-M3.txt

20 lines · 1195 bytes Raw Blame History
1mutation M3: foreign signature formatted over without the override
2test: blockdev_tests::r1_refuses_a_device_carrying_a_filesystem_or_partition_signature
3diff --git a/crates/synapse-store/src/blockdev.rs b/crates/synapse-store/src/blockdev.rs
4index 05850d9..11e25b3 100644
5--- a/crates/synapse-store/src/blockdev.rs
6+++ b/crates/synapse-store/src/blockdev.rs
7@@ -612,7 +612,7 @@ impl BlockDevice {
8 cfg.path.display()
9 )))
10 }
11- other if cfg.allow_foreign_signature && cfg.format == FormatPolicy::FormatIfBlank => {
12+ other if cfg.format == FormatPolicy::FormatIfBlank => {
13 let _ = other;
14 Self::format(io.as_ref(), cfg.meta_region_bytes, segment_bytes)?;
15 }
16---
17test blockdev_tests::r1_refuses_a_device_carrying_a_filesystem_or_partition_signature ... FAILED
18thread 'blockdev_tests::r1_refuses_a_device_carrying_a_filesystem_or_partition_signature' (1697966) panicked at crates/synapse-store/src/blockdev_tests.rs:254:28:
19test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 72 filtered out; finished in 0.03s
20error: test failed, to rerun pass `-p synapse-store --lib`