-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[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
base: master
Are you sure you want to change the base?
Conversation
linev
commented
Apr 23, 2025
- Generate dictionary for custom tested classes
- Load this library when running test macros
- Avoid multiple cling workarounds
- 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; |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Test Results 17 files 17 suites 4d 9h 29m 15s ⏱️ For more details on these failures, see this check. Results for commit 26078f8. ♻️ This comment has been updated with latest results. |