lib/Test/Simple/t/fail-more.t fails test 10 when perl is built with bcc32: not ok 10 # Failed test (../lib/Test/Simple/t/fail-more.t at line 80) # got: 'No such file or directory # ' # expected: '' # Failed test (../lib/Test/Simple/t/fail-more.t at line 81) # got: 2 # expected: -1
# Failed test (../lib/Test/Simple/t/fail-more.t at line 80) # got: 'No such file or directory ' # expected: '' # Failed test (../lib/Test/Simple/t/fail-more.t at line 81) # got: 2 # expected: -1 I think the difference lies in the EOL on $! -- under bcc32 $! messages are terminated with \n (\r\n when output). This is not true of VC++ or GCC, and the test doesn't allow for it. This difference, of course, comes from the underlying CRT. Using Borland, this program #include <stdio.h> #include <string.h> void main(void) { printf("'%s'\n", strerror(2)); } outputs 'No such file or directory ' whereas using VC++ or GCC it outputs 'No such file or directory' Perhaps rather than making the test allow for the difference, the better solution might be to fix up $! under Borland to effectively chomp the trailing newline? Where is the code that sets up $! if I wanted to give that a try? ------------------------------------------------ Radan Computational Ltd. The information contained in this message and any files transmitted with it are confidential and intended for the addressee(s) only. If you have received this message in error or there are any problems, please notify the sender immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Radan Computational Ltd. The recipient(s) of this message should check it and any attached files for viruses: Radan Computational will accept no liability for any damage caused by any virus transmitted by this email.