commit bc6470ee15473f4d88992c72ce2f80fd5d830ba4
parent 88e1976a0dffffbdadd9a98f265e97c82155469e
Author: triesap <tyson@radroots.org>
Date: Fri, 21 Aug 2026 23:19:15 +0000
test: align native Myc portability guards
Gate the native wrapping-credential helper and state-repository integration test to Linux and macOS, matching the filesystem and SQLite authority they exercise. Unsupported-target all-target checks remain warnings-denied and production code remains compiled fail-closed.
Diffstat:
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/provider_envelope.rs b/src/provider_envelope.rs
@@ -1129,6 +1129,7 @@ mod tests {
.clone()
}
+ #[cfg(any(target_os = "linux", target_os = "macos"))]
fn credential(label: &str) -> MycWrappingCredential {
MycWrappingCredential::from_resolution(MycCredentialResolutionProof {
credential: Zeroizing::new(bytes(label)),
diff --git a/tests/services_hardening_state_repository.rs b/tests/services_hardening_state_repository.rs
@@ -1,4 +1,5 @@
#![forbid(unsafe_code)]
+#![cfg(any(target_os = "linux", target_os = "macos"))]
use std::{error::Error, fs, os::unix::fs::PermissionsExt, path::Path};