develooper Front page | perl.perl5.porters | Postings from March 2016

[perl #127760] Win32: File::Path fails tests in non-threaded buildson smoke testing

Thread Previous
From:
Tony Cook via RT
Date:
March 29, 2016 00:17
Subject:
[perl #127760] Win32: File::Path fails tests in non-threaded buildson smoke testing
Message ID:
rt-4.0.18-27997-1459210658-1999.127760-15-0@perl.org
On Mon Mar 21 17:18:59 2016, tonyc wrote:
> http://www.nntp.perl.org/group/perl.daily-
> build.reports/2016/03/msg189801.html

This seems to come down to a difference between Win2k (which is what the smoker runs on) and more modern versions of Windows.

It only fails on non-threaded builds, because threaded builds have USE_IMP_SYS enabled, which on Win32 emulates a thread-local current directory.

I've asked George (who runs the smoker) to test a simple program that exercises the APIs that seem to differ in behaviour (attached).

This behaves the same way on Windows XP and Windows 7:

J:\dev\perl\git>cl curdir.c
Microsoft (R) C/C++ Optimizing Compiler Version 15.00.30729.01 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

curdir.c
Microsoft (R) Incremental Linker Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:curdir.exe
curdir.obj

J:\dev\perl\git>curdir j:\dev
Current directory now 'j:\dev'
Attributes 10

J:\dev\perl\git>curdir \\?\j:\dev
Current directory now '\\?\j:\dev'
Attributes 10

Tony

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=127760

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About