Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: skip ssse3 rgb packing test when the feature is missing

Kyzerb3ec0932202f
diff --git a/crates/recording/src/screenshot.rs b/crates/recording/src/screenshot.rs
index b4fd934b5..537c4fdb7 100644
--- a/crates/recording/src/screenshot.rs
+++ b/crates/recording/src/screenshot.rs
@@ -2037,10 +2037,10 @@ mod screenshot_pixel_tests {
#[cfg(target_arch = "x86_64")]
#[test]
fn rgb_ssse3_matches_original_including_scalar_tail() {
- assert!(
- std::is_x86_feature_detected!("ssse3"),
- "ssse3 is required to execute the shuffled path"
- );
+ if !std::is_x86_feature_detected!("ssse3") {
+ eprintln!("ssse3 unavailable, skipping shuffled rgb path");
+ return;
+ }
for (width, height, pad) in rgb_cases() {
let stride = width * 4 + pad;
let data = paint(