Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

monitor_profile test: Unix only (it runs /bin/sleep and /bin/sh); fixes Windows CI after #591 (#633)

Brandon Thomas2cd470c08e66
diff --git a/apps/photocraft/src/monitor_profile.rs b/apps/photocraft/src/monitor_profile.rs
index b351be0aa..86850afef 100644
--- a/apps/photocraft/src/monitor_profile.rs
+++ b/apps/photocraft/src/monitor_profile.rs
@@ -213,6 +213,8 @@ mod tests {
assert!(parse_reply("execution error: -1728").unwrap_err().contains("-1728"));
}
+ // Drives /bin/sleep and /bin/sh; the helper itself only runs on macOS.
+ #[cfg(unix)]
#[test]
fn a_hung_helper_is_stopped_and_big_replies_dont_block() {
let t0 = std::time::Instant::now();