This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Test file "is not readable" when running 'make test' (Perl)


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


Rob@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@desktop2 /cygdrive/c/_32/comp/Foo-0.01
--------------------------------------------

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

Rob@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@desktop2 /cygdrive/c/_32/comp/Foo-0.01
$ /usr/bin/perl.exe -Mblib t/test.t
1..1
ok 1

Rob@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@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@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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]