Skip to content

Fix an auto-registration problem in the FitPanel unit test - #22991

Merged
hageboeck merged 2 commits into
root-project:masterfrom
hageboeck:TGraph2D_FitPanelTest
Aug 4, 2026
Merged

Fix an auto-registration problem in the FitPanel unit test#22991
hageboeck merged 2 commits into
root-project:masterfrom
hageboeck:TGraph2D_FitPanelTest

Conversation

@hageboeck

@hageboeck hageboeck commented Aug 3, 2026

Copy link
Copy Markdown
Member

Split off from #22817.

The unit tests for the fit panel were crashing when trying to select a TGraph2D that was never registered in the fit panel, because it was never drawn. Here, the output of the tests is made easier to interpret, and the graph is registered in gDirectory, so the tests of the FitPanel can select it.

Due to output redirection, failures in the fit panel unit tests were
silent. Here, the output is shown in case of failure.
Furthermore, the program silently crashed if a combo box couldn't select
the desired entry. Now, the result of the combo box selection is
checked, and an exception is thrown if the requested item is not
present.
When object auto-registration is off, a TGraph2D was not displayed in
the fit panel, because it is never drawn.
This lead to a failure in gui tests.
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

Test Results

    23 files      23 suites   3d 19h 24m 31s ⏱️
 3 856 tests  3 855 ✅ 0 💤 1 ❌
79 411 runs  79 407 ✅ 2 💤 2 ❌

For more details on these failures, see this check.

Results for commit ffc6f53.

@guitargeek guitargeek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank for fixing the auto-registration problem and improving the diagnostics in the unit test!

@hageboeck

Copy link
Copy Markdown
Member Author

The red builds are the cpp11 container tests timing out, so this is unrelated to this change.

@hageboeck
hageboeck merged commit fae567c into root-project:master Aug 4, 2026
27 of 30 checks passed
@hageboeck
hageboeck deleted the TGraph2D_FitPanelTest branch August 4, 2026 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants