From: Andy Dougherty Date: Mon, 22 Sep 2008 13:36:57 +0000 (-0400) Subject: [perl #59208][PATCH 5.8.x] ext/DynaLoader/t/XSLoader.t assumes dynamic loading X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=99df65aa94c2a00e350c2fda1b8e429c45d6ace7;p=p5sagit%2Fp5-mst-13.2.git [perl #59208][PATCH 5.8.x] ext/DynaLoader/t/XSLoader.t assumes dynamic loading Message-ID: p4raw-id: //depot/perl@34402 --- diff --git a/ext/DynaLoader/t/XSLoader.t b/ext/DynaLoader/t/XSLoader.t index 31a85cf..2c7479e 100644 --- a/ext/DynaLoader/t/XSLoader.t +++ b/ext/DynaLoader/t/XSLoader.t @@ -52,8 +52,14 @@ like( $@, '/^XSLoader::load\(\'Your::Module\', \$Your::Module::VERSION\)/', "calling XSLoader::load() with no argument" ); eval q{ package Thwack; XSLoader::load('Thwack'); }; -like( $@, q{/^Can't locate loadable object for module Thwack in @INC/}, - "calling XSLoader::load() under a package with no XS part" ); +if ($Config{usedl}) { + like( $@, q{/^Can't locate loadable object for module Thwack in @INC/}, + "calling XSLoader::load() under a package with no XS part" ); +} +else { + like( $@, q{/^Can't load module Thwack, dynamic loading not available in this perl./}, + "calling XSLoader::load() under a package with no XS part" ); +} # Now try to load well known XS modules my $extensions = $Config{'extensions'};