delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/05/06:31:58

X-Spam-Check-By: sourceware.org
Message-ID: <DAF735A4B86F4319A9BFE20BC1A4F938@desktop2>
From: "Sisyphus" <sisyphus1 AT optusnet DOT com DOT au>
To: <cygwin AT cygwin DOT com>
Subject: Test file "is not readable" when running 'make test' (Perl)
Date: Thu, 5 Jul 2007 20:32:09 +1000
MIME-Version: 1.0
X-Mailer: Microsoft Windows Mail 6.0.6000.16480
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi,
I'm trying to build a very small (and simplistic) perl module that I've 
created (Foo-0.01):
--------------------------------------------
Rob AT desktop2 /cygdrive/c/_32/comp/Foo-0.01
$ perl Makefile.PL
Writing Makefile for Foo

Rob AT desktop2 /cygdrive/c/_32/comp/Foo-0.01
$ make test
cp Foo.pm blib/lib/Foo.pm
/usr/bin/perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 
'blib/lib', 'blib/arch')" t/*.t
t/test....t/test.t is not readable
FAILED--1 test script could be run, alas--no output ever seen
make: *** [test_dynamic] Error 255

Rob AT desktop2 /cygdrive/c/_32/comp/Foo-0.01
--------------------------------------------

Sure enough, when I look at the permissions associated with t/test.t I find:
--------------------------------------------
Rob AT desktop2 /cygdrive/c/_32/comp/Foo-0.01/t
$ ls -l
total 1
----------+ 1 Rob None 46 Jul  5 13:37 test.t

Rob AT desktop2 /cygdrive/c/_32/comp/Foo-0.01/t
--------------------------------------------

But the permissions associated with these files is *not* something with 
which I have had to concern myself on previous Cygwin installations. I'm 
wondering why it's suddenly an issue.

And I find the following behaviour:
--------------------------------------------
Rob AT desktop2 /cygdrive/c/_32/comp/Foo-0.01
$ /usr/bin/perl.exe -Mblib t/test.t
1..1
ok 1

Rob AT desktop2 /cygdrive/c/_32/comp/Foo-0.01
--------------------------------------------

All of a sudden, the permissions (or lack thereof) are no longer an issue !!
So let's just check that command that failed before, by running a 
copy'n'paste of it:
--------------------------------------------
Rob AT desktop2 /cygdrive/c/_32/comp/Foo-0.01
$ /usr/bin/perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 
'blib/lib', 'blib/arch')" t/*.t
t/test....t/test.t is not readable
FAILED--1 test script could be run, alas--no output ever seen

Rob AT desktop2 /cygdrive/c/_32/comp/Foo-0.01
--------------------------------------------

Bah!!! ... it has become a problem again. For one perl command there's a 
problem, but for another perl command there's no problem. Is it something 
that ExtUtils::Command::MM is doing ?

Any help appreciated.

Cheers,
Rob 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019