X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fexotic_names.t;fp=t%2Fexotic_names.t;h=06d64842dec47eabb16f0725b8fc7c63767a414e;hb=3f1762c7005f1669dbfde6bff7a204d3bfc72f72;hp=6a5e28e2c5c1a04785f6b121016c6391517a1ee2;hpb=a24a624977b29cacd9a9afdc7644395be55ebcb5;p=p5sagit%2FSub-Name.git diff --git a/t/exotic_names.t b/t/exotic_names.t index 6a5e28e..06d6484 100644 --- a/t/exotic_names.t +++ b/t/exotic_names.t @@ -54,7 +54,13 @@ sub caller3_ok { is $stash_name, $expected, "stash name for $type is correct $for_what"; is $sub->(), $expected, "caller() in $type returns correct name $for_what"; - ok $DB::sub{$expected}, "%DB::sub entry for $type is correct $for_what"; + SKIP: { + skip '%DB::sub not populated when enabled at runtime', 1 + unless keys %DB::sub; + my ($prefix) = $expected =~ /^(.*?test::[^:]+::)/; + my ($db_found) = grep /^$prefix/, keys %DB::sub; + is $db_found, $expected, "%DB::sub entry for $type is correct $for_what"; + } } #######################################################################