fix CI: pub scsi::linux module and SgIoTransport fields for integration tests
This commit is contained in:
+2
-2
@@ -64,9 +64,9 @@ const _: () = assert!(std::mem::size_of::<sg_io_hdr>() == 88);
|
|||||||
const _: () = assert!(std::mem::size_of::<sg_io_hdr>() == 64);
|
const _: () = assert!(std::mem::size_of::<sg_io_hdr>() == 64);
|
||||||
|
|
||||||
pub struct SgIoTransport {
|
pub struct SgIoTransport {
|
||||||
fd: i32,
|
pub fd: i32,
|
||||||
device_path: std::path::PathBuf,
|
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 {
|
impl SgIoTransport {
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@
|
|||||||
//! - `windows.rs` — SPTI (SCSI Pass-Through Interface)
|
//! - `windows.rs` — SPTI (SCSI Pass-Through Interface)
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
pub(crate) mod linux;
|
pub mod linux;
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
mod macos;
|
mod macos;
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ fn test_sgio_transport_timeout_does_not_kill_transport() {
|
|||||||
assert!(result.is_err(), "expected Err on timeout, got {:?}", result);
|
assert!(result.is_err(), "expected Err on timeout, got {:?}", result);
|
||||||
let err = result.unwrap_err();
|
let err = result.unwrap_err();
|
||||||
assert!(
|
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 {:?}",
|
"expected ScsiError(TRANSPORT_FAILURE), got {:?}",
|
||||||
err
|
err
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user