https://gcc.gnu.org/g:09245932a2c16b59e6aa8d3a8e03ed5e4a9d43b2
commit r17-5550-g09245932a2c16b59e6aa8d3a8e03ed5e4a9d43b2 Author: John David Anglin <[email protected]> Date: Sat Oct 24 16:19:08 2026 -0400 testsuite: Prune missing 'dot' tool execution errors in diagnostic-cfgs.c The test gcc.dg/diagnostic-cfgs.c passes options to generate control flow graphs (CFGs) via '-fdiagnostics-add-output=...:cfgs=yes'. On hosts where Graphviz ('dot') is not installed or available, this triggers cascading execution errors from the compiler framework trying to invoke the missing binary, leading to false-positive 'test for excess errors' failures. Since the testsuite harness does not currently feature an effective- target guard for checking Graphviz availability on the host, this patch prunes the resulting execvp error message to allow the test to gracefully pass on minimal/headless build configurations. 2026-10-24 John David Anglin <[email protected]> gcc/testsuite/ChangeLog: * gcc.dg/diagnostic-cfgs.c: Add dg-prune-output for missing 'dot' executable errors. Diff: --- gcc/testsuite/gcc.dg/diagnostic-cfgs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gcc.dg/diagnostic-cfgs.c b/gcc/testsuite/gcc.dg/diagnostic-cfgs.c index 99740655b613..a935d34b6cfd 100644 --- a/gcc/testsuite/gcc.dg/diagnostic-cfgs.c +++ b/gcc/testsuite/gcc.dg/diagnostic-cfgs.c @@ -3,6 +3,7 @@ /* { dg-do compile } */ /* { dg-additional-options "-fdiagnostics-add-output=sarif:cfgs=yes" } */ /* { dg-additional-options "-fdiagnostics-add-output=experimental-html:javascript=no,cfgs=yes" } */ +/* { dg-prune-output "error trying to exec 'dot'" } */ int test (int i, int j, int k)
