fix(nesdoctor): the Apple Silicon GPU name had doubled parentheses

The fallback worked -- the macOS runner now reports a GPU instead of
`unknown`, and the raw probe dump settled which of the two candidate causes it
was: a headless virtual Mac with no display adapter to enumerate, so
`system_profiler` had nothing and the parser was never at fault.

It read `Apple M1 (Virtual) (integrated)`, because the SoC name already
carries a parenthetical on a VM. Em-dash instead. The suffix stays: it records
that the name came from the chip rather than from a display adapter, which is
the difference between a machine with no GPU and a machine with no display.
This commit is contained in:
Wanjohi
2026-09-02 16:34:11 +03:00
parent 730739a5c0
commit dc99bd2743

View File

@@ -307,7 +307,16 @@ fn gpus() -> Vec<Gpu> {
let soc = soc.trim(); let soc = soc.trim();
if !soc.is_empty() { if !soc.is_empty() {
gpus.push(Gpu { gpus.push(Gpu {
name: format!("{soc} (integrated)"), // Em-dash rather than a parenthetical: the SoC name can
// already carry one. The CI runner reports
// "Apple M1 (Virtual)", which became
// "Apple M1 (Virtual) (integrated)".
//
// The suffix is worth keeping despite that -- it says
// this name came from the chip rather than from a
// display adapter, which is the difference between a
// machine with no GPU and a machine with no display.
name: format!("{soc} — SoC GPU"),
vendor: Some("Apple".into()), vendor: Some("Apple".into()),
render_node: None, render_node: None,
}); });