X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fxs.t;h=8caa2ad82a9273d50276b570de7336f73939d1fb;hb=b4d741691e1fcefe51c5f1d563d23e3951c2a30c;hp=d57a0307ab45e77c93a574779b9275c8c2067ed2;hpb=f01f85acffcfa5de6df9df81f0c335ec28833558;p=p5sagit%2FJSON-MaybeXS.git diff --git a/t/xs.t b/t/xs.t index d57a030..8caa2ad 100644 --- a/t/xs.t +++ b/t/xs.t @@ -1,7 +1,12 @@ use strict; use warnings; -use Test::Without::Module 'Cpanel::JSON::XS'; +# hide Cpanel::JSON::XS +use lib map { + my ( $m, $c ) = ( $_, qq{die "Can't locate $_ (hidden)\n"} ); + sub { return unless $_[1] eq $m; open my $fh, "<", \$c; return $fh } +} qw{Cpanel/JSON/XS.pm}; + use Test::More 0.88; use JSON::MaybeXS;