From d42152f9285dffbaa8a282185556d52acf748a07 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Wed, 25 Nov 2026 17:04:17 -0800 Subject: [PATCH] craft-video: the MJPEG tests read craft-jpeg's fixtures from tests/it The video integration tests moved into tests/it/, one directory deeper, so the four include_bytes! paths to crates/jpeg/tests/data/ need one more "../" to resolve. --- crates/video/tests/it/mjpeg.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/video/tests/it/mjpeg.rs b/crates/video/tests/it/mjpeg.rs index db8a06980d..1b131dfad9 100644 --- a/crates/video/tests/it/mjpeg.rs +++ b/crates/video/tests/it/mjpeg.rs @@ -250,11 +250,11 @@ fn adobe_transform_zero_keeps_numeric_id_components_as_rgb() { } /// libjpeg-turbo's test images, kept with `craft-jpeg` (`crates/jpeg/tests/data/SOURCE.md`). -const TESTORIG: &[u8] = include_bytes!("../../jpeg/tests/data/testorig.jpg"); -const TESTORIG_PROGRESSIVE: &[u8] = include_bytes!("../../jpeg/tests/data/testorig-huffman-progressive.jpg"); -const TESTORIG12: &[u8] = include_bytes!("../../jpeg/tests/data/testorig12.jpg"); +const TESTORIG: &[u8] = include_bytes!("../../../jpeg/tests/data/testorig.jpg"); +const TESTORIG_PROGRESSIVE: &[u8] = include_bytes!("../../../jpeg/tests/data/testorig-huffman-progressive.jpg"); +const TESTORIG12: &[u8] = include_bytes!("../../../jpeg/tests/data/testorig12.jpg"); /// libjpeg-turbo's decode of `testorig12.jpg`: binary PPM, maxval 4095. -const TESTORIG12_PPM: &[u8] = include_bytes!("../../jpeg/tests/data/testorig12.ppm"); +const TESTORIG12_PPM: &[u8] = include_bytes!("../../../jpeg/tests/data/testorig12.ppm"); /// A byte the padding of a row starts as, to see that `decode_into` leaves it alone. const PAD: u8 = 0xA5;