Tested on hppa64-hp-hpux11.11. Committed to trunk. Dave ---
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 --git a/gcc/testsuite/gcc.dg/diagnostic-cfgs.c
b/gcc/testsuite/gcc.dg/diagnostic-cfgs.c
index 99740655b61..a935d34b6cf 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)
signature.asc
Description: PGP signature
