From 749030694d2b0ec41736992d45eb09b38005bed7 Mon Sep 17 00:00:00 2001 From: Patrik Lermon Date: Fri, 30 Oct 2026 12:43:04 +0100 Subject: [PATCH] platform: give the macOS HEVC probe test its own binary again It must be the first in its process to ask `hevc_available()`, but #2860 moved it into the shared `it` binary next to `hardware_encode`, which asks too. Under `cargo test` (xtask's fallback without nextest) the two raced and it failed with "nothing has asked yet". Same layout as its Windows twin `nvenc_hevc_warm.rs`. Co-Authored-By: Claude Opus 5.5 --- crates/platform/tests/hevc_probe.rs | 4 ++-- crates/platform/tests/it/main.rs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/platform/tests/hevc_probe.rs b/crates/platform/tests/hevc_probe.rs index ba394a754..5d2475664 100644 --- a/crates/platform/tests/hevc_probe.rs +++ b/crates/platform/tests/hevc_probe.rs @@ -1,6 +1,6 @@ //! `register()` answers the HEVC availability probe in the background, so the first draw of the -//! format list does not create a hardware session on the UI thread. One test in this file on -//! purpose: anything else that asked `hevc_available()` first would make the wait below meaningless. +//! format list does not create a hardware session on the UI thread. Its own test binary on purpose: +//! anything else that asked `hevc_available()` first would make the wait below meaningless. #![cfg(target_os = "macos")] use std::time::{Duration, Instant}; diff --git a/crates/platform/tests/it/main.rs b/crates/platform/tests/it/main.rs index b863c7d04..ccb7d09fe 100644 --- a/crates/platform/tests/it/main.rs +++ b/crates/platform/tests/it/main.rs @@ -1,7 +1,6 @@ mod common; mod fallback; mod hardware_encode; -mod hevc_probe; mod media_foundation; mod nvenc; mod nvenc_export;