[openssl-dev] [openssl.org #4083] possible fix to make test failure with openssl-1.0.2d on MinGW...

christian fafard via RT rt at openssl.org
Mon Oct 12 02:03:00 UTC 2015


I'm sorry for that mess with the previous message.There was no CRLF because it was copy-pasted from emacs.
What i tried to say basically is that the "negate regex match" (!/^0$$/) constructused in the line 244 of 'test/Makefile' does not work with some versions of perl.Like for exemple, perl v5.8.8 in the MinGW/msys distibution.
That's the reason why 'make test' fail on that platform.
My proposal is to invert the if/else actions to get rid of the negation in the expression (/^0$$/).
So the line:
@<tmp.bntest sh -c "`sh ./bctest ignore`" | $(PERL) -e '$$i=0; while (<STDIN>) {if (/^test (.*)/) {print STDERR "\nverify $$1";} elsif (!/^0$$/) {die "\nFailed! bc: $$_";} else {print STDERR "."; $$i++;}} print STDERR "\n$$i tests passed\n"'
would became:
@<tmp.bntest sh -c "`sh ./bctest ignore`" | $(PERL) -e '$$i=0; while (<STDIN>) {if (/^test (.*)/) {print STDERR "\nverify $$1";} elsif (/^0$$/) {print STDERR "."; $$i++;} else {die "\nFailed! bc: $$_";}} print STDERR "\n$$i tests passed\n"'
I attached a patch.
ThanksChristian 		 	   		  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openssl-1.0.2d-MINGW32.patch
Type: application/octet-stream
Size: 876 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20151012/d9bf625e/attachment.obj>


More information about the openssl-dev mailing list