diff --git a/fixtures/whatif/main.tex b/fixtures/whatif/main.tex index d3cd72b..9ab5331 100644 --- a/fixtures/whatif/main.tex +++ b/fixtures/whatif/main.tex @@ -14,7 +14,8 @@ % 5. Without --shell-escape, externalize is refused when asked for and not run by default. % 6. Draft mode runs on all three engines and its output is not compared (no PDF). % 7. The probe's bound for externalize is the one tikzpicture's time, and for preamble the -% preamble phase, the longest phase on every engine. +% preamble phase, longer than every phase after it on every engine. (Not longer than +% startup: on LuaLaTeX the engine's startup is about the same size.) % 8. The document's directory is unchanged. \documentclass{article} \usepackage{amsmath} diff --git a/tests/fixtures.rs b/tests/fixtures.rs index ad48037..8ffb5ad 100644 --- a/tests/fixtures.rs +++ b/tests/fixtures.rs @@ -1006,8 +1006,13 @@ fn whatif_fixture_bounds() { let p = m.run_phases(); let preamble = p.preamble.unwrap(); assert_eq!(bound_ms(&m, Experiment::Preamble), Some(prumo::report::ms(preamble)), "{label}"); - let others = [Some(p.startup), p.begin_document, p.typesetting, Some(p.shipout), p.end_document]; - assert!(others.iter().all(|o| o.unwrap() < preamble), "{label}: the preamble is the longest phase: {p:?}"); + // Startup is left out: on LuaLaTeX the engine's start is about as long as this + // preamble, and CI regenerates these artifacts on its own runner before testing. + let later = [p.begin_document, p.typesetting, Some(p.shipout), p.end_document]; + assert!( + later.iter().all(|o| o.unwrap() < preamble), + "{label}: the preamble is longer than every phase after it: {p:?}" + ); assert_eq!(bound_ms(&m, Experiment::Draft), None); } }