https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123142

            Bug ID: 123142
           Summary: gcc.dg/plugin/diagnostic-test-graphs-html.c FAILs
                    without dot
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: diagnostics
          Assignee: dmalcolm at redhat dot com
          Reporter: ro at gcc dot gnu.org
  Target Milestone: ---

The test gcc.dg/plugin/diagnostic-test-graphs-html.cFAILs in some cases.  I've
seen this on Solaris/x86, but the issue is generic:

+FAIL: gcc.dg/plugin/diagnostic-test-graphs-html.c
diagnostic-test-graphs-html.py::test_result_grap
+FAIL: gcc.dg/plugin/diagnostic-test-graphs-html.c
diagnostic-test-graphs-html.py::test_run_grap

The log shows

Executing on host: python3 -m pytest --color=no -rap -s --tb=no --version   
(timeout = 300)
spawn -ignore SIGHUP python3 -m pytest --color=no -rap -s --tb=no --version
pytest 8.3.3
============================= test session starts
==============================
platform sunos5 -- Python 3.11.13, pytest-8.3.3, pluggy-1.5.0
rootdir: /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/plugin
collecting ...
collected 2 items

../../../../../../../../../vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/plugin/diagnostic-test-graphs-html.py
html_filename: 'diagnostic-test-graphs-html.c.html'
Fhtml_filename: 'diagnostic-test-graphs-html.c.html'
F

=========================== short test summary info
============================
FAILED
../../../../../../../../../vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/plugin/diagnostic-test-graphs-html.py::test_result_graph
FAILED
../../../../../../../../../vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/plugin/diagnostic-test-graphs-html.py::test_run_graph
FAIL: gcc.dg/plugin/diagnostic-test-graphs-html.c
diagnostic-test-graphs-html.py::test_result_grap
FAIL: gcc.dg/plugin/diagnostic-test-graphs-html.c
diagnostic-test-graphs-html.py::test_run_grap
============================== 2 failed in 0.05s
===============================

which isn't particularly helpful, but in the end I found that graphviz.cc tries
to exec dot.  If that's missing (as was the case on this particular system),
the failure isn't handled properly.

Reply via email to