test/recipes/80-test_cms.t: Fix the "CAdES ko" test#19731
Conversation
This test had commands that assumes that runner_loop() is used to perform the tests. These tests still run fine because Unix accepts braces in file names, but other operating systems might not.
|
Made urgent because this test fails on VMS. All other tests are |
|
Agree urgent |
| SKIP: { | ||
| my $skip_reason = check_availability($$_[0]); | ||
| skip $skip_reason, 1 if $skip_reason; | ||
| 1 while unlink "cades-ko.txt"; |
There was a problem hiding this comment.
Why is a loop required here?
Also, doesn't this leave cades-ko.txt undeleted on the final loop? Or, maybe that doesn't matter...
There was a problem hiding this comment.
It's required on VMS, where files may exist in multiple generations (so cades-ko.txt;1, cades-ko.txt;2, ...)
There was a problem hiding this comment.
Regarding deleting all but for the final loop, you're right about that. However, the array we use has only one element. The function runner_loop handles that better, but isn't quite suitable for this particular test because of the second negative test. I've thoughts on reworking runner_loop, but that's overkill for this fix.
|
Merged to 3.1 and master branches. Thank you. |
This test had commands that assumes that runner_loop() is used to perform the tests. These tests still run fine because Unix accepts braces in file names, but other operating systems might not. Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from #19731)
This test had commands that assumes that runner_loop() is used to perform the tests. These tests still run fine because Unix accepts braces in file names, but other operating systems might not. Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from #19731) (cherry picked from commit 20d3731)
This test had commands that assumes that runner_loop() is used to perform the tests. These tests still run fine because Unix accepts braces in file names, but other operating systems might not. Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from openssl#19731) (cherry picked from commit 20d3731)
This test had commands that assumes that runner_loop() is used to perform
the tests. These tests still run fine because Unix accepts braces in file
names, but other operating systems might not.