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
cleanup of 15-test_gendhparam.t and fix for #17480 #17689
Conversation
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.
Something seems to be missing :) |
Hmm, I tried to reproduce the problem this way (using oldish perl, and with unpatched master):
The problem occurred after only 38 repetitions. |
@levitte I really have no idea how this seems to fix the problem, do you have an idea? |
@bernd-edlinger: My theory is, that |
I think that was just by luck it is not easy to reproduce,
what if I had by chance a parameter generation where on line if the PEM output starts
and no, there is no extra line |
I would change it in a way it cannot interfere with the testing framework, for example:
You can run it without V=1 and find the results in |
I think I spotted the root cause why the test fails around 1 of 1000 test runs: |
Nevertheless I like your cleanup too. |
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.
LGTM although it is just a clean-up
…g with ok[^a-zA-Z0-9] as a testresult.
I could prove:
Thanks to @bernd-edlinger for detecting this case. |
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 prefer this approach to #17692
Hmm, maybe switch to the prefix "# ", as it is used in other places? |
I totally agree about consistent usage. When I was choosing a prefix, I was looking and couldn't find a hint, which would make most sense. Do you have references where you found this one? |
I've searched in the test V=1 output for "---BEGIN" and found for instance this one:
|
oops.. |
I would be fine changing it - ok for the reviewers? "Thumbs up" to this comment = yes, "Thumbs down" = no |
24 hours has passed since 'approval: done' was set, but as this PR has been updated in that time the label 'approval: ready to merge' is not being automatically set. Please review the updates and set the label manually. |
@paulidale @mattcaswell still OK? |
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.
Still ok.
Just to be sure: Do I have open tasks (setting labels or something else)? |
Prefix output of generated dh parameters to avoid misinterpretation of lines beginning with ok[^a-zA-Z0-9] as a testresult. Also corrected indent and removed useless comma after last item. Fixes #17480 Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from #17689)
Prefix output of generated dh parameters to avoid misinterpretation of lines beginning with ok[^a-zA-Z0-9] as a testresult. Also corrected indent and removed useless comma after last item. Fixes #17480 Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from #17689) (cherry picked from commit b089d54)
Squashed the commits and reworded the commit message. Merged to master and 3.0 branches. Thank you for your contribution. |
In the definition of the testdata-array in
15-test_gendhparam.t
, there is a trailing comma. Even though this should be allowed in perl, I think this might cause the sporadic error described in #17480.