...and the liberal sprinkling of sleep(2) in the loops does the trick.

The base issue is that all tests use the same temp file names (data and
headers).  The template is generated at line 15 using:

(undef, $data) = tempfile("rawXXXX", SUFFIX=>'_data', TMPDIR=>1);

The header file name is modified from $data.

The simplest solution is probably to generate a temp file for each test.
Or maybe there is something even simpler I am missing.

Regards,
Shawn.


On 26 October 2015 at 19:58, Shawn Laffan <[email protected]> wrote:

> Thanks Rob,
>
> The issue looks to be Windows10 related, as the result is the same using
> -Mblib and the installed 2.013.  I've just listed the 2.014 results below
> for brevity.
>
> flexraw_fortran.t is re-using the temp file, so my guess is that it isn't
> being released by the preceding test.
>
> I'll see if I can work out the innards of the file and add some sleeps.
>
> Shawn.
>
>
> C:\.cpanm\work\1445825426.10440\PDL-2.014>perl -Mblib t\flexraw_fortran.t
>
> ExtUtils::F77: Version 1.17
> Loaded ExtUtils::F77 version 1.17
> Found compiler gfortran.exe
> ExtUtils::F77: Using system=MSWin32 compiler=<undefined>
> ExtUtils::F77: Unable to guess and/or validate system/compiler
> configuration
> ExtUtils::F77: Will try system=Generic Compiler=GFortran
> ExtUtils::F77: Validating
> -LC:/berrybrew/5.20.3_64_PDL/c/bin/../lib/gcc/x86_64-w64-mingw32/4.8.3
> -L/usr/lib -lgfortran -lm   [ok]
> ExtUtils::F77: Compiler: gfortran
> ExtUtils::F77: Cflags: -O
> 1..29
> readflex: name is C:/Users/shawn/AppData/Local/Temp/raw3E5h_data
> ok 1 - readflex float w hdr file
> readflex: name is C:/Users/shawn/AppData/Local/Temp/raw3E5h_data
> ok 2 - readflex float w hdr file (explicit swap)
> readflex: name is C:/Users/shawn/AppData/Local/Temp/raw3E5h_data
> ok 3 - readflex float w hdr array
> Access is denied.
> ERROR: code did not create data file
> C:/Users/shawn/AppData/Local/Temp/raw3E5h_data
> # Looks like you planned 29 tests but ran 3.
> # Looks like your test exited with 2 just after 3.
>
>
> On 26 October 2015 at 19:23, <[email protected]> wrote:
>
>> From: Shawn Laffan
>>
>> t/fft.t ......................... ok
>>> t/fits.t ........................ ok
>>> t/flexraw.t ..................... ok
>>>
>>> ExtUtils::F77: Version 1.17
>>> Access is denied.
>>> ERROR: code did not create data file
>>> C:/Users/shawn/AppData/Local/Temp/raw7MHh_data
>>> # Looks like you planned 29 tests but ran 3.
>>> # Looks like your test exited with 2 just after 3.
>>> t/flexraw_fortran.t .............
>>> Dubious, test returned 2 (wstat 512, 0x200)
>>> Failed 26/29 subtests
>>> t/flow.t ........................ ok
>>> t/func.t ........................ ok
>>> t/gauss.t ....................... ok
>>>
>>
>> Seems very odd to me.
>>
>> What output do you get if you cd to the build directory and run:
>> perl -Mblib t/flexraw_fortran.t
>>
>> I'm guessing that you don't have permissions to create the temporary file
>> C:/Users/shawn/AppData/Local/Temp/raw7MHh_data, but I don't know why that
>> would be.
>>
>> While you're in that build directory, check on how PDL-2.013 handles that
>> test script by running:
>> perl t/flexraw_fortran.t
>>
>> t/flexraw_fortran.t hasn't altered from 2.013 to 2.014, so I'd be
>> thinking you should have the same problem with 2.013.
>>
>> Cheers,
>> Rob
>>
>
>
------------------------------------------------------------------------------
_______________________________________________
pdl-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-general

Reply via email to