From eaeb9513134db4e4033cb32fa4516902b381055d Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Wed, 11 Nov 2026 09:34:26 -0800 Subject: [PATCH] tests::host_memory: the unix-only host-page test keeps its cfg The copy-cause test was inserted between the_host_page_is_known_on_unix and its #[cfg(unix)], which then guarded the new test and left the host-page test unguarded. Each has its own now: the cause test runs everywhere, the host-page test on unix alone, as before. --- crates/metal2vulkan-runtime/src/tests/host_memory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/metal2vulkan-runtime/src/tests/host_memory.rs b/crates/metal2vulkan-runtime/src/tests/host_memory.rs index f5abbea9a..72ae9ec37 100644 --- a/crates/metal2vulkan-runtime/src/tests/host_memory.rs +++ b/crates/metal2vulkan-runtime/src/tests/host_memory.rs @@ -207,7 +207,6 @@ fn imported_memory_is_host_visible_and_coherent_of_the_storage_mode_s_class() { assert!(candidates(&types, 0b10000, MemoryClass::Shared, false).is_empty()); } -#[cfg(unix)] /// A no-copy object made a copy of its pages as their import failed names the failure in its /// announcement (`copied-host-pages`): pages the runtime kept from the driver as the kernel cannot /// pin them (`RuntimeDriverDefect::UnpinnablePagesBreakHostMemory`), and whether a source of their @@ -244,6 +243,7 @@ fn a_copy_after_a_failed_import_names_the_failure() { assert!(!of_dma_bufs.contains(defect), "{of_dma_bufs}"); } +#[cfg(unix)] #[test] fn the_host_page_is_known_on_unix() { let page = host_page().unwrap();