Skip to content

[json] improve roottest/io/json testing #18483

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

linev
Copy link
Member

@linev linev commented Apr 23, 2025

  1. Generate dictionary for custom tested classes
  2. Load this library when running test macros
  3. Avoid multiple cling workarounds
  4. All ref files remains as is

1. Generate dictionary for custom tested classes
2. Load this library when running test macros
3. Avoid multiple cling workarounds
4. All ref files remains as is
#else
void runSTL0()
{
gSystem->Load("libJsonTestClasses");

TJsonEx7 ex7;
Copy link
Member

Choose a reason for hiding this comment

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

This is odd. The compilation by Cling of runSTL0 happens before the gSystem->Load is executed, so it looks like the test is relying on auto-loading of the library instead. Is that the intent? Does it still work when ROOT is compiled with runtime_cxxmodule=OFF?

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess, we will see it in CI

Copy link
Member Author

Choose a reason for hiding this comment

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

All three macros - runSTL, runSTL0, runSTL1 - exercise different STL containers with len = 5, 0, 1.
Library only needed to get generated streamer infos - code should work in compiled and interpreter mode in same way.

Allows to correctly use single tests
Copy link

github-actions bot commented Apr 23, 2025

Test Results

    17 files      17 suites   4d 9h 29m 15s ⏱️
 2 731 tests  2 730 ✅   0 💤 1 ❌
45 082 runs  44 768 ✅ 312 💤 2 ❌

For more details on these failures, see this check.

Results for commit 26078f8.

♻️ This comment has been updated with latest results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants