From 55b69b5d736d0bc04d3791c30eef06df51bd9b4e Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Thu, 3 Dec 2026 08:11:52 -0800 Subject: [PATCH] :memo: Put the fragments test's doc back over its own test [ci skip] S9's reset test went in between the doc of a_tile_in_fragments_lands_in_the_surface_its_first_fragment_lends and the test itself, so the reset test carried both docs and the fragments test none. The fragments doc goes back over its test, and the reset test's doc gets its closing full stop. (cherry picked from commit 8b662a2de44c7bed84f38c987d0a282cd0349636) --- crates/reims-vgpu-video/src/paravirt/decoder/tests.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/reims-vgpu-video/src/paravirt/decoder/tests.rs b/crates/reims-vgpu-video/src/paravirt/decoder/tests.rs index e04bf83cc..b81e57edb 100644 --- a/crates/reims-vgpu-video/src/paravirt/decoder/tests.rs +++ b/crates/reims-vgpu-video/src/paravirt/decoder/tests.rs @@ -1564,14 +1564,11 @@ fn a_tile_lands_its_region_in_the_surface_it_lends_then_is_emitted_and_let_go() assert!(guest.quiet()); } -/// A `dtil` in fragments that lends its surface with its first fragment lands in that surface: -/// the surface is held, with nothing sent, until the tile's last fragment, and goes back after -/// the tile's reply. /// The device's reset ends a session whose tile is decoding ([`Host::end_sessions`]): the /// reset's wait ([`Host::sessions_left`]) does not end while that decode may still write the /// guest's surface, and ends once it has. Past the wait nothing of the session writes the guest's /// memory or reaches the guest: the tile the guest sent behind it is never decoded, however long -/// after, its decoder is dropped, and the session's UUID is answered as one with none +/// after, its decoder is dropped, and the session's UUID is answered as one with none. #[test] fn a_reset_waits_for_the_write_in_hand_and_no_session_writes_past_it() { let (guest, held) = Guest::gated(Some(TILES)); @@ -1622,6 +1619,9 @@ fn a_reset_waits_for_the_write_in_hand_and_no_session_writes_past_it() { assert_eq!(guest.next(), surface_release(&[42])); } +/// A `dtil` in fragments that lends its surface with its first fragment lands in that surface: +/// the surface is held, with nothing sent, until the tile's last fragment, and goes back after +/// the tile's reply. #[test] fn a_tile_in_fragments_lands_in_the_surface_its_first_fragment_lends() { let guest = Guest::with_tiles(Ok(Decoded::Landed), Some(TILES));