diff --git a/bazel/rules/testing/wine/src/lib.rs b/bazel/rules/testing/wine/src/lib.rs index aea5f4c2c9..5b3a73e503 100644 --- a/bazel/rules/testing/wine/src/lib.rs +++ b/bazel/rules/testing/wine/src/lib.rs @@ -31,15 +31,6 @@ pub struct WineTestCommand { env: Vec<(OsString, OsString)>, } -/// Owns a Wine process and its isolated wineserver. -/// -/// Call [`Self::scope`] or [`Self::shutdown`] on every successful path. A -/// normal unguarded drop panics, while a drop during unwinding performs -/// blocking cleanup without introducing a second panic. -pub struct WineTestProcess { - processes: Option, -} - /// Captured output and exit status from a Wine test command. #[derive(Debug, PartialEq, Eq)] pub struct WineCommandOutput { @@ -51,6 +42,15 @@ pub struct WineCommandOutput { pub exit_code: i32, } +/// Owns a Wine process and its isolated wineserver. +/// +/// Call [`Self::scope`] or [`Self::shutdown`] on every successful path. A +/// normal unguarded drop panics, while a drop during unwinding performs +/// blocking cleanup without introducing a second panic. +pub struct WineTestProcess { + processes: Option, +} + struct WineProcesses { child: Child, cleanup_complete: bool,