Is there a proper way to test both parts of dual implementation modules?

In a pinch i came up with

  use DynaLoader;
  sub DynaLoader::bootstrap{1};  # Don't dynaload anything please.

  use Scalar::Util qw(refaddr); #pure perl implementation

to disable an XS implementation of a module that used DynaLoader, but
im wondering if there is an approved generic way to do this in a more
targetted way?

Should the Test:: framework be able to do this automatically? IE, run
the test suite in XS test and non-XS mode when told the module is dual
implementation?


--
perl -Mre=debug -e "/just|another|perl|hacker/"

Reply via email to