develooper Front page | perl.perl5.porters | Postings from August 2009

Building from ext/ doesn't like VMS debug builds (Re: Smoke [5.11.0] blead-1964-g2adbc9b FAIL(F) MSWin32 Win2000 SP4 (x86/1 cpu))

Thread Next
From:
Craig A. Berry
Date:
August 28, 2009 08:15
Subject:
Building from ext/ doesn't like VMS debug builds (Re: Smoke [5.11.0] blead-1964-g2adbc9b FAIL(F) MSWin32 Win2000 SP4 (x86/1 cpu))
Message ID:
c9ab31fc0908280814o1e6d3e73yf24ce9329e457fd1@mail.gmail.com
On Fri, Aug 28, 2009 at 7:09 AM, Nicholas Clark<nick@ccl4.org> wrote:

> I suspect it's caused by something in
> http://perl5.git.perl.org/perl.git/commit/2adbc9b6919cad1240a83432
> but I can't work out what, as that passes on VMS and *nix

When I build for the VMS debugger (which my Test::Smoke set-up does
not do) I now get 500+ test failures that look like:

t/lib/vms_dclsym..............................................ok
t/lib/vms_stdio...............................................ok
t/lib/vmsfspec................................................ok
can't run '../../perl "-I../../t" "-MTestInit=U2T,A,NC" t/constants.t
2>&1|': no such file or directory.
ext/Attribute-Handlers/t/constants............................FAILED--no
leader found
can't run '../../perl "-I../../t" "-MTestInit=U2T,A,NC"
t/data_convert.t 2>&1|': no such file or directory.
ext/Attribute-Handlers/t/data_convert.........................FAILED--no
leader found
can't run '../../perl "-I../../t" "-MTestInit=U2T,A,NC" t/linerep.t
2>&1|': no such file or directory.
ext/Attribute-Handlers/t/linerep..............................FAILED--no
leader found
can't run '../../perl "-I../../t" "-MTestInit=U2T,A,NC" t/multi.t
2>&1|': no such file or directory.
ext/Attribute-Handlers/t/multi................................FAILED--no
leader found

and the reason for that is that there really is no ../../perl.exe, but
there is a ../../t/perl.exe  -- is there any reason we can't use the
latter as that's the one we've explicitly put in place for the tests
to use.

What we have instead of perl.exe in the top-level directory is
dbgperl.exe, which invokes the debugger when you run it, and
ndbgperl.exe, which doesn't.  The latter is copied down to t/perl.exe
by vms/test.com.  I guess we could copy it two places and make sure
there is a perl.exe at the top level, but it seems simpler to use the
one that's already in t/.  The following works for me, is there any
reason not to do it this way?

--- t/TEST;-0   2009-08-27 18:48:31 -0500
+++ t/TEST      2009-08-28 09:55:35 -0500
@@ -197,7 +197,7 @@ sub _run_test {
            $ext_dir = $1;
            $return_dir = '../../t';
            $lib = '../../lib';
-           $perl = '../../perl';
+           $perl = '../../t/perl';
            $testswitch = "-I$return_dir -MTestInit=U2T,A";
            if ($temp_no_core{$ext_dir}) {
                $testswitch = $testswitch . ',NC';
[end]

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About