Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-NoXS CPAN distribution.

Report information
The Basics
Id: 46699
Status: resolved
Priority: 0/
Queue: Test-NoXS

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: use Test::NoXS ":all":
I have a request. MakeMaker needs to work under miniperl before any XS code is built. To that end, I'd like way to turn off loading of *all* XS code. "use Test::NoXS ':all'" would seem to make the most sense.
Subject: Re: [rt.cpan.org #46699] use Test::NoXS ":all":
Date: Sat, 6 Jun 2009 07:48:15 -0400
To: bug-Test-NoXS [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
On Sat, Jun 6, 2009 at 1:25 AM, Michael G Schwern via RT<bug-Test-NoXS@rt.cpan.org> wrote: Show quoted text
> I have a request.  MakeMaker needs to work under miniperl before any XS > code is built.  To that end, I'd like way to turn off loading of *all* > XS code.  "use Test::NoXS ':all'" would seem to make the most sense.
I could do that, but don't you then need to bundle Test::NoXS into either core or EU::MM's inc? Looking at the Test::NoXS source, you can probably just do this directly in a test somewhere before you require any EU::MM code: require DynaLoader; require XSLoader; # maybe no warnings 'redefine' ? *DynaLoader::bootstrap = sub { die }; *XSLoader::load = sub { die }; -- David
Subject: Re: [rt.cpan.org #46699] use Test::NoXS ":all":
Date: Sat, 06 Jun 2009 11:07:50 -0700
To: bug-Test-NoXS [...] rt.cpan.org
From: Michael G Schwern <schwern [...] pobox.com>
David Golden via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=46699 > > > On Sat, Jun 6, 2009 at 1:25 AM, Michael G Schwern via > RT<bug-Test-NoXS@rt.cpan.org> wrote:
>> I have a request. MakeMaker needs to work under miniperl before any XS >> code is built. To that end, I'd like way to turn off loading of *all* >> XS code. "use Test::NoXS ':all'" would seem to make the most sense.
> > I could do that, but don't you then need to bundle Test::NoXS into > either core or EU::MM's inc?
No problem, this is what t/lib is for. This is just to simulate miniperl in testing. Show quoted text
> Looking at the Test::NoXS source, you can probably just do this > directly in a test somewhere before you require any EU::MM code: > > require DynaLoader; > require XSLoader; > # maybe no warnings 'redefine' ? > *DynaLoader::bootstrap = sub { die }; > *XSLoader::load = sub { die };
I could, but then that would be MORE crazy code in MakeMaker to maintain. :) -- 'All anyone gets in a mirror is themselves,' she said. 'But what you gets in a good gumbo is everything.' -- "Witches Abroad" by Terry Prachett
Uploaded 1.01 with :all support.