fix(test): the close-stops-a-backup test is unix-only, as its helpers are
check / check (cli) (push) Canceled after 0s
check / check (gui-tests) (push) Canceled after 0s
check / check (gui-unit) (push) Canceled after 0s
check / check (lint) (push) Canceled after 0s
check / check (rest) (push) Canceled after 0s
portable-macos / portable (macos-latest) (push) Canceled after 0s
portable-windows / portable (windows-latest) (push) Canceled after 0s
two-user / two-user (push) Canceled after 0s

Windows could not compile book_open_close: the test used three
helpers marked unix-only (they speak over a raw unix socket) and was
not itself marked. The host's Windows environment also kept a
ProgramFiles path it only used to find git, which is gone.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-22 09:39:47 -07:00
1 parent c37bbb9a60
commit 00f8aadc71
2 files changed
+1 -2

No files matched your search

@@ -2452,6 +2452,7 @@ fn backup_record_of(home: &Home, id: &str) -> Vec<serde_json::Map<String, Value>
/// recorded as done); the folder still proves whole at the backup before;
/// and the close's own last backup is made as always (local.rs INVARIANT
/// 10).
#[cfg(unix)]
#[test]
fn a_close_stops_a_running_backup_call_and_says_so() {
let home = Home::new("close-stops-backup-call");
-2
View File
@@ -450,8 +450,6 @@ fn host_env(home: &Path) -> Vec<(String, std::ffi::OsString)> {
let system_root: PathBuf = var("SystemRoot")
.or_else(|| var("windir"))
.map_or_else(|| PathBuf::from(r"C:\Windows"), PathBuf::from);
let program_files: PathBuf =
var("ProgramFiles").map_or_else(|| PathBuf::from(r"C:\Program Files"), PathBuf::from);
let path = std::env::join_paths([system_root.join("System32"), system_root.clone()])
.unwrap_or_default();
let mut env: Vec<(String, std::ffi::OsString)> = vec![