mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 13:08:29 +00:00
fix: make cross-target tests and vscode launch path robust for macOS + Windows
This commit is contained in:
@@ -61,6 +61,20 @@ fn lint_command_runs() {
|
||||
assert!(out.status.success(), "dcr init should succeed");
|
||||
|
||||
// Linting a clean project should succeed or at least run without crashing
|
||||
let tidy_ok = Command::new("clang-tidy")
|
||||
.arg("--version")
|
||||
.output()
|
||||
.map(|o| o.status.success())
|
||||
.unwrap_or(false);
|
||||
if !tidy_ok {
|
||||
eprintln!("clang-tidy not found; skipping lint test");
|
||||
return;
|
||||
}
|
||||
let out = run_dcr_env(&["lint"], &dir, &[]);
|
||||
assert!(out.status.success(), "dcr lint should run on clean project");
|
||||
assert!(
|
||||
out.status.success(),
|
||||
"dcr lint should run on clean project:\nstdout: {}\nstderr: {}",
|
||||
String::from_utf8_lossy(&out.stdout),
|
||||
String::from_utf8_lossy(&out.stderr)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user