Repository navigation
test 1623: add test data - #23648
Closed
bagder wants to merge 1 commit into
Closed
test 1623: add test data#23648bagder wants to merge 1 commit into
bagder wants to merge 1 commit into
Conversation
Verify the maximum value and the value just over max. Mention test 1623 in the header comment for secs2ms()
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the secs2ms() boundary-test additions and accompanying comment update.
No open issues 🎉
What changed in this PR
This PR strengthens test 1623’s boundary coverage for secs2ms(), the command-line tool’s seconds-to-milliseconds conversion helper.
Changes:
- Adds upper-bound valid and invalid inputs for platforms where
longis wider than 32 bits, including a valid input with leading zeros. - Adds a comment linking
secs2ms()to test 1623; production behavior is unchanged.
| File | Description |
|---|---|
| tests/tunit/tool1623.c | Adds large-value boundary cases guarded by SIZEOF_LONG > 4. |
| src/tool_paramhlp.c | References test 1623 in the secs2ms() header comment. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Verify the maximum value and the value just over max.
Mention test 1623 in the header comment for secs2ms()