fix CI: pub scsi::linux module and SgIoTransport fields for integration tests

This commit is contained in:
2026-04-28 21:43:14 -07:00
parent 9440af6d24
commit 0487c2e09c
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -64,9 +64,9 @@ const _: () = assert!(std::mem::size_of::<sg_io_hdr>() == 88);
const _: () = assert!(std::mem::size_of::<sg_io_hdr>() == 64);
pub struct SgIoTransport {
fd: i32,
pub fd: i32,
device_path: std::path::PathBuf,
fd_recovery: std::sync::Arc<std::sync::atomic::AtomicI32>,
pub fd_recovery: std::sync::Arc<std::sync::atomic::AtomicI32>,
}
impl SgIoTransport {
+1 -1
View File
@@ -6,7 +6,7 @@
//! - `windows.rs` — SPTI (SCSI Pass-Through Interface)
#[cfg(target_os = "linux")]
pub(crate) mod linux;
pub mod linux;
#[cfg(target_os = "macos")]
mod macos;
#[cfg(target_os = "windows")]
+1 -1
View File
@@ -39,7 +39,7 @@ fn test_sgio_transport_timeout_does_not_kill_transport() {
assert!(result.is_err(), "expected Err on timeout, got {:?}", result);
let err = result.unwrap_err();
assert!(
matches!(&err, libfreemkv::Error::ScsiError { status, .. } if *status == SCSI_STATUS_TRANSPORT_FAILURE),
matches!(&err, libfreemkv::Error::ScsiError { ref status, .. } if *status == SCSI_STATUS_TRANSPORT_FAILURE),
"expected ScsiError(TRANSPORT_FAILURE), got {:?}",
err
);