in reply to Test::Harness not working on my machine

Which version of Test::Harness?

I haven't installed perl under "C:\Program Files" in over 2 years, but I recall this issue being resolved for a while now.

Get the latest Test::Harness, and report back please.

update: Holy schnikes man!!!! 1.1604 is quite ancient (that's the version that shipped). The latest is 2.26. Get it now ;D!


MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
** The Third rule of perl club is a statement of fact: pod is sexy.

  • Comment on Re: Test::Harness not working on my machine

Replies are listed 'Best First'.
Re: Re: Test::Harness not working on my machine
by John M. Dlugosz (Monsignor) on Jan 13, 2003 at 07:20 UTC
    Get the latest Test::Harness, and report back please.

    Version 2.26 has the same problem.

    It's much more complex and split across multiple files now, but after some digging, I find:

    open(FILE, "$cmd $switches $file|")
    I modified line 273 of Test::Harness::Straps.pm to read
    my $cmd = $self->{_is_vms} ? "MCR $^X" : ( $^O eq 'MSWin32' ? Win3 +2::GetShortPathName($^X) : $^X);
    to add a case for Windows. Now it works again.

    —John

      If you've not done so already, drop a bug-report and/or a failing test and patch to schwern (e-mail would probably be best - he doesn't seem to be a perlmonks regular :-)

      In my experience he appreciates patches!

Re: Re: Test::Harness not working on my machine
by John M. Dlugosz (Monsignor) on Jan 13, 2003 at 06:44 UTC
    After I read your post, I started downloading the last Perl 5.6.1 issued by ActiveState. It was taking its sweet time...

    Looks like the file date of the new one is September 2001, $VERSION = "1.1604";. It has the same use of the variables posted earlier.

    Well, to get 2.26... Hmm,

    "None of the range-specifier values in the Range request-header field overlap the current extent of the selected resource. > Apache/2.0.43 Server at search.cpan.org Port 80
    Download from CPAN.org instead,

    Well, it's own "nmake test" for Test::Harness gives me a whole bunch of t\callback.........'C:\Program' is not recognized as an internal or external command,, which sure looks like the same issue.

    Back to my directory, same problem: it cuts off the Perl interpreter name at the first space.

    —John

Re: Re: Test::Harness not working on my machine
by John M. Dlugosz (Monsignor) on Jan 13, 2003 at 05:04 UTC
    It's the one that came with ActiveState build 630, shipped Oct 31 2001.