On Mac OS X 10.6.5, t/flexraw_fortran.t fails because the default temp directory is too long (50 characters, in my case). The file $TEMPDIR/tmpraw.f has a long character constant as the argument to 'file' in the 'open' function call. The subroutine code_fold in flexraw_fortran.t does not take into account character constants when breaking code across lines. I don't know enough about Fortran to figure out how to break character constants across lines--I tried several things that didn't work.
Setting TEMPDIR to something short (instead of undef) in perldl.conf causes this test to pass. So I believe it is a bug in the test script, not in the module being tested. You can probably reproduce it by setting your tempdir to something very long. The failing test output is below.
$ perl -Mblib t/flexraw_fortran.t
ExtUtils::F77: Version 1.16
Loaded ExtUtils::F77 version 1.16
ExtUtils::F77: Using system=Darwin compiler=GFortran
Checking for gcc in disguise:
Compiler is gcc version 4.2.1 (Apple Inc. build 5664)
Runtime: -L/opt/local/lib/gcc43 -lgfortran -L/usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64 -lgcc
ExtUtils::F77: Validating -L/opt/local/lib/gcc43 -lgfortran -L/usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64 -lgcc [ok]
ExtUtils::F77: Compiler: gfortran-mp-4.3
Type float swapped
Error: Syntax error in OPEN statement at (1)
Error: Bad continuation line at (1)
Error: Invalid character in name at (1)
ERROR: code did not create data file /var/folders/cp/cpF7SuTpEJqtly5xlloAak+++TI/-Tmp-/tmprawdata
# Looks like your test exited with 2 before it could output anything.
Log in to post a comment.