diff --git a/crates/cms/Cargo.toml b/crates/cms/Cargo.toml index 51fb2aab7..c876e4d42 100644 --- a/crates/cms/Cargo.toml +++ b/crates/cms/Cargo.toml @@ -20,4 +20,5 @@ md5 = { workspace = true } rayon = { workspace = true } [dev-dependencies] +craft-testkit = { workspace = true } moxcms = "0.8" diff --git a/crates/cms/tests/cms.rs b/crates/cms/tests/cms.rs index bf6934d9a..00b9b3b7a 100644 --- a/crates/cms/tests/cms.rs +++ b/crates/cms/tests/cms.rs @@ -115,7 +115,9 @@ fn white_is_exact_on_every_path() { let none = [0.0f32; 4]; for cmyk in [Builtin::CoatedCmyk, Builtin::CoatedFogra39] { for intent in [Intent::Perceptual, Intent::RelativeColorimetric, Intent::Saturation] { - for bpc in [false, true] { + // The gate runs black point compensation on; nightly both. + let bpcs: &[bool] = if craft_testkit::hostile::divisor() > 1 { &[true] } else { &[false, true] }; + for &bpc in bpcs { for precise_float in [false, true] { let opts = TransformOptions { intent, bpc, precise_float }; let at = format!("{cmyk:?} {opts:?}");