🎨 Let the presenting queue test time its GPU work by the wall clock

clippy denies Instant::now outside the Clock, and the batch's lint legs
failed on the three calls in row 27's test, which sizes its fills from a
timed run and measures the lock it probes. Like command.rs's GPU timing
tests, it now allows disallowed_methods with the reason. Test-only.
This commit is contained in:
Anees Iqbal committed 2026-12-02 12:14:10 -08:00
1 parent f07e99e0d2
commit 9c3ccc18f3
1 file changed
+1
@@ -1669,6 +1669,7 @@ mod tests {
/// presenting queue holds none of rt's work (a queue of its own, NVIDIA's) idles at once,
/// and the test then says so and shows nothing.
#[test]
#[allow(clippy::disallowed_methods)] // a measurement, and real-time waits for the GPU's work
fn a_wait_for_the_presenting_queue_to_idle_holds_its_lock_for_no_drain_on_vulkan() {
const PRIVATE: u64 = 2 << 4;
const FILL: u64 = 64 << 20;