Hi Serguei, thanks for your help.
On Fri, 15 Jul 2011 19:01:32 +0300 Serguei Trouchelle <s...@cpan.org> wrote: > Hi Shlomi, > > Shlomi Fish wrote: > > > Here is another failing test report for Test-Count on MS Windows: > > > > http://www.cpantesters.org/cpan/report/303b21da-55cd-101b-b0bd-c0f01c721f4d > > > > I'm trying to figure out why it keeps complaining that it cannot write to > > the files in the temporary directory (which was a workaround for the fact > > that it could not write into files under t/data/** ). > > Tried to run this tests on my machine, this failure is reproducible. > It's failing because "with-include.t" is read-only, and File::Copy::copy > produces read-only file as well. You can either change its permissions from > 444 to 644 in distribution file, or set it to read-write in your test. The file is already 0644 in the VCS checkout that I'm using to create the distribution, but I guess that somewhere along the way it becomes 0444. So I have to set the copied file to be read-write. Searching for it I find this: http://stackoverflow.com/questions/445912/how-do-i-clear-the-read-only-flag-from-a-file-in-perl So I guess I'll use chmod. > > It's actually some kind of weird behavior of File::Copy, which doesn't keep > permissions on Linux and keeps them on Windows, OS/2 and VMS -- reasons > unknown. Yes, really weird. Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Escape from GNU Autohell - http://www.shlomifish.org/open-source/anti/autohell/ The first phrase that need to be taught when teaching a new language is how to say “Do you speak English?”. The first thing that needs to be taught when teaching a new computer tool is how to exit it. Please reply to list if it's a mailing list post - http://shlom.in/reply .