test: scope CPU override regressions to supported platforms

This commit is contained in:
FredApps committed 2026-11-13 14:08:57 +01:00
1 parent 5a53828c70
commit e6730be289
2 files changed
+5

No files matched your search

@@ -2,6 +2,9 @@
//! its signing (#2916). aws-lc printed "Fatal Error: HW capability found: …" and aborted before
//! `main`. Built to detect the CPU on first use, it would abort at the first signature instead.
// macOS intentionally does not relaunch: Finder delivers files to the original process.
#![cfg(not(target_os = "macos"))]
use std::process::{Command, Output};
/// CPUID leaf 1, EDX bit 10: reserved, so no x86 processor reports it.
+2
View File
@@ -50,6 +50,8 @@ fn version_prints_the_version_and_exits() {
/// An `OPENSSL_ia32cap` that asks for a CPU feature the processor lacks (CPUID leaf 1, EDX bit
/// 10, reserved on every x86) doesn't stop the app (#2916): aws-lc aborted before `main`, with no
/// window and nothing in the log.
// macOS intentionally does not relaunch: Finder delivers files to the original process.
#[cfg(not(target_os = "macos"))]
#[test]
fn a_cpu_override_naming_a_missing_feature_does_not_stop_the_app() {
let out = run_with(Command::new(BIN).arg("--version").env("OPENSSL_ia32cap", "0x400"), Stdio::piped());