Merge fork main c96b4f2

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-24 19:56:57 -06:00
commit d9a31188be
8 files changed
+755 -74

No files matched your search

+8 -2
View File
@@ -522,7 +522,12 @@ mod card_tests {
/// had not received from bytes the card wrote.
pub(crate) fn relay() -> bool {
static ON: std::sync::OnceLock<bool> = std::sync::OnceLock::new();
*ON.get_or_init(|| std::env::var("VICTORY_RELAY").is_ok_and(|v| v == "1" || v == "2") && !keeps())
// On by default (stage 2, `crate::host::relay_exact`); `VICTORY_RELAY=0`
// turns it off, `=1` asks for the first stage.
// The crate's own tests run without it unless they ask: several of
// them look at title memory right after a submission, which the
// relay's landing thread may still be writing.
*ON.get_or_init(|| std::env::var("VICTORY_RELAY").map_or(!cfg!(test), |v| v == "1" || v == "2") && !keeps())
}
/// The submission being prepared (its number among those started): what
@@ -1010,7 +1015,8 @@ unsafe fn copy_wide(src: *const u8, dst: *mut u8, len: usize) {
/// lists only afterwards).
pub(crate) fn wide_back() -> bool {
static ON: std::sync::OnceLock<bool> = std::sync::OnceLock::new();
*ON.get_or_init(|| std::env::var_os("VICTORY_WIDE_BACK").is_some_and(|v| v == "1"))
// On by default; `VICTORY_WIDE_BACK=0` turns it off.
*ON.get_or_init(|| std::env::var_os("VICTORY_WIDE_BACK").is_none_or(|v| v != "0"))
}
type Job = Box<dyn FnOnce() + Send>;