#![cfg(all(feature = "comms", unix))]
use std::process::Command;
fn bin() -> &'static str {
env!("CARGO_BIN_EXE_basemind")
}
#[test]
fn should_not_warn_json_ineffective_on_comms() {
basemind::store::init_isolated_cache();
let dir = tempfile::tempdir().expect("tempdir");
let output = Command::new(bin())
.args(["--root", dir.path().to_str().unwrap(), "--json", "comms", "status"])
.env_remove("RUST_LOG")
.output()
.expect("run basemind comms status");
let stderr = String::from_utf8_lossy(&output.stderr);
assert!(
!stderr.contains("--json has no effect"),
"comms consumes `--json`; no ignored-flag warning expected. stderr:\n{stderr}"
);
}