PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Tests: monitor_macos answers nextest's --list
Ivan3bd9bc72a7be
diff --git a/crates/tablet/tests/monitor_macos.rs b/crates/tablet/tests/monitor_macos.rsindex 0a32923aa..82f371cdb 100644--- a/crates/tablet/tests/monitor_macos.rs+++ b/crates/tablet/tests/monitor_macos.rs@@ -14,6 +14,16 @@ fn main() {use photocraft_tablet::Sample;use photocraft_tablet::macos::Monitor;+ // Answer cargo-nextest's `--list` (and nothing for `--ignored`), as tests/mac_menu_appkit.rs+ // in apps/photocraft does; `monitor_macos --exact` falls through to the test.+ let args: Vec<String> = std::env::args().collect();+ if args.iter().any(|a| a == "--list") {+ if !args.iter().any(|a| a == "--ignored") {+ println!("monitor_macos: test");+ }+ return;+ }+let mtm = MainThreadMarker::new().expect("harness = false runs on the main thread");let app = NSApplication::sharedApplication(mtm);let event = |kind: CGEventType, pressure: f64, tilt: (f64, f64), subtype: CGEventMouseSubtype| {