At 3:54 PM -0500 2/16/00, Larry Moore wrote:
>At 10:52 +1300 16/02/2000, Grant McLean wrote:
>Sorry for the delay in responding.
>  I'm back in civilization and have Net access again , I'll give your beta a
>test.
>
>:5_MemCopy.t
>1..7
>not ok 1
># Could not find desertnet.xml in
>File 'Dev:Pseudo'; Line 166
>
>What version of File::Spec are you using?

Looks like this is failing because it's looking for desertnet.xml as 
:t:desertnet.xml rather than as desertnet.xml.  Since you're running 
the test by hand, it's simply looking in the wrong place.  (Grant, 
since "make" doesn't exist for MacOS, we can't use the usual 
procedure, and need to run the tests by hand.  When you do that, 
MacPerl will set its cwd to be the directory which contains the 
test.)  For example, if I run the test by hand in the t directory on 
Linux, I get the same error:

linux% perl -Mblib 5_MemCopy.t
Using /usr/local/home/schinder/XML-Simple-1.02b/t/../blib
1..7
not ok 1
Could not find t/desertnet.xml in  at 5_MemCopy.t line 166


Try making a t folder inside the t folder and moving and 
desertnet.xml-source into it before running the test.  When I do that 
in Linux, the test works:

linux% mkdir t
linux% mv desertnet.xml-source !$
mv desertnet.xml-source t
linux% !per
perl -Mblib 5_MemCopy.t
Using /usr/local/home/schinder/XML-Simple-1.02b/t/../blib
1..7
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7

I don't know a good solution for this except a "if ($^O eq 'MacOS')" 
switch in the test.

--
Paul Schinder
[EMAIL PROTECTED]

Reply via email to