Compiling turkos-os-shutdown-io v0.1.0 (/os-shutdown-io) warning: constant `EIO` is never used --> tests/../src/flush.rs:8:11 | 8 | pub const EIO: u64 = 5; | ^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: constant `ETIMEDOUT` is never used --> tests/../src/flush.rs:9:11 | 9 | pub const ETIMEDOUT: u64 = 110; | ^^^^^^^^^ warning: variants `IoError` and `Timeout` are never constructed --> tests/../src/flush.rs:25:5 | 23 | pub enum Fault { | ----- variants in this enum 24 | None = 0, 25 | IoError = 1, | ^^^^^^^ 26 | Timeout = 2, | ^^^^^^^ | = note: `Fault` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis warning: variant `DegradedAbort` is never constructed --> tests/../src/flush.rs:37:5 | 31 | pub enum Phase { | ----- variant in this enum ... 37 | DegradedAbort = 5, | ^^^^^^^^^^^^^ | = note: `Phase` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis warning: variants `IoError` and `Timeout` are never constructed --> tests/../src/flush.rs:46:5 | 42 | pub enum Error { | ----- variants in this enum ... 46 | IoError = 4, | ^^^^^^^ 47 | Timeout = 5, | ^^^^^^^ | = note: `Error` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis warning: method `inject_fault` is never used --> tests/../src/flush.rs:178:12 | 88 | impl FlushCoordinator { | --------------------- method in this implementation ... 178 | pub fn inject_fault(&mut self, stage: Stage, fault: Fault) -> Result { | ^^^^^^^^^^^^ warning: constant `ESHUTDOWN` is never used --> tests/../src/quiesce.rs:9:11 | 9 | pub const ESHUTDOWN: u64 = 108; | ^^^^^^^^^ warning: variants `Shutdown`, `Capacity`, and `InvalidWrite` are never constructed --> tests/../src/quiesce.rs:22:5 | 21 | pub enum Error { | ----- variants in this enum 22 | Shutdown = 1, | ^^^^^^^^ 23 | Capacity = 2, | ^^^^^^^^ 24 | InvalidWrite = 3, | ^^^^^^^^^^^^ | = note: `Error` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis warning: struct `CompletedWrite` is never constructed --> tests/../src/quiesce.rs:30:12 | 30 | pub struct CompletedWrite { | ^^^^^^^^^^^^^^ warning: methods `admit_write`, `complete_write`, and `completed_record` are never used --> tests/../src/quiesce.rs:103:12 | 75 | impl QuiesceGate { | ---------------- methods in this implementation ... 103 | pub fn admit_write(&mut self, client_id: u64, bytes: u32, digest: u64) -> Result { | ^^^^^^^^^^^ ... 141 | pub fn complete_write(&mut self, write_id: u64) -> Result { | ^^^^^^^^^^^^^^ ... 167 | pub fn completed_record(&self, write_id: u64) -> Result { | ^^^^^^^^^^^^^^^^ warning: `turkos-os-shutdown-io` (test "flush_session") generated 10 warnings Finished `test` profile [unoptimized + debuginfo] target(s) in 0.91s Running unittests src/lib.rs (/tmp/turkos-k2150-shutdown-crate-tests/debug/build/turkos-os-shutdown-io/5457a1990d53bcc5/out/turkos_os_shutdown_io-5457a1990d53bcc5) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running tests/flush.rs (/tmp/turkos-k2150-shutdown-crate-tests/debug/build/turkos-os-shutdown-io/adad065d7450c5bc/out/flush-adad065d7450c5bc) running 4 tests test os_shutdown_io_flush_order_and_process_quit_separation ... ok test os_shutdown_io_flush_negative ... ok test os_shutdown_io_flush_invalid_fault_inputs ... ok test os_shutdown_io_flush_positive ... ok test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running tests/flush_io.rs (/tmp/turkos-k2150-shutdown-crate-tests/debug/build/turkos-os-shutdown-io/769b7f1e7a9b6b70/out/flush_io-769b7f1e7a9b6b70) running 4 tests test complete_plan_is_validated_before_the_first_write ... ok test open_and_partly_drained_gate_issue_no_storage_commands ... ok test ordered_writes_and_completed_barriers_issue_receipt ... ok test every_write_and_flush_failure_withholds_clean_and_stops_io ... ok test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running tests/flush_session.rs (/tmp/turkos-k2150-shutdown-crate-tests/debug/build/turkos-os-shutdown-io/c33c4e9eb57ae785/out/flush_session-c33c4e9eb57ae785) running 4 tests test unquiesced_and_invalid_plan_never_reach_device ... ok test authorized_actual_flush_is_required_before_clean_claim ... ok test other_pid_and_stale_generation_cannot_submit_or_claim ... ok test every_device_failure_is_terminal_without_clean_receipt ... ok test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running tests/leases.rs (/tmp/turkos-k2150-shutdown-crate-tests/debug/build/turkos-os-shutdown-io/a074b98138725522/out/leases-a074b98138725522) running 3 tests test os_shutdown_io_leases_negative ... ok test os_shutdown_io_leases_positive ... ok test os_shutdown_io_leases_validation_and_capacity ... ok test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running tests/quiesce.rs (/tmp/turkos-k2150-shutdown-crate-tests/debug/build/turkos-os-shutdown-io/f0b2c56a0d74b4dc/out/quiesce-f0b2c56a0d74b4dc) running 4 tests test os_shutdown_io_quiesce_negative ... ok test os_shutdown_io_quiesce_immediate_when_empty_and_no_double_quiesce ... ok test os_shutdown_io_quiesce_positive ... ok test os_shutdown_io_quiesce_validation_and_capacity ... ok test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests turkos_os_shutdown_io running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s