Skip to content
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

Move TestAlarmOn()/TestAlarmOff() back into PerformTests() #5307

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

jhendersonHDF
Copy link
Collaborator

Moves call to TestAlarmOn() in testframe framework back into the PerformTests() function due to the timing of when the framework processes command-line arguments

Moves call to TestAlarmOn() in testframe framework back into
the PerformTests() function due to the timing of when the
framework processes command-line arguments
@@ -456,6 +450,10 @@ TestParseCmdLine(int argc, char *argv[])
herr_t
PerformTests(void)
{
/* Enable alarm timer for tests */
if (TestAlarmOn() < 0)
Copy link
Collaborator Author

@jhendersonHDF jhendersonHDF Feb 10, 2025

Choose a reason for hiding this comment

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

While I'd like for this timer to cover essentially the whole test program, the timing of when testframe tests process command-line arguments means that this call has to come late in test execution to react to the -testexpress command-line option. The timer is still for all of the tests as intended in #5292, but not for the init/shutdown parts of the program. To cover that as well, TestParseCmdLine() would need to be called as part of TestInit(), which would be a good idea but would require re-writing how that function deals with skipping tests, so this is the easier solution for now.

@jhendersonHDF jhendersonHDF added Priority - 3. Low 🔽 Code cleanup, small feature change requests, etc. Component - Testing Code in test or testpar directories, GitHub workflows Type - Bug / Bugfix Please report security issues to [email protected] instead of creating an issue on GitHub labels Feb 10, 2025
@lrknox lrknox merged commit d48af25 into HDFGroup:develop Feb 10, 2025
76 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Testing Code in test or testpar directories, GitHub workflows Priority - 3. Low 🔽 Code cleanup, small feature change requests, etc. Type - Bug / Bugfix Please report security issues to [email protected] instead of creating an issue on GitHub
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants