2 push @INC, "::lib:$MacPerl::Architecture:" if $^O eq 'MacOS';
3 require Config; import Config;
4 if ($Config{'extensions'} !~ /\bXS\/APItest\b/) {
5 print "1..0 # Skip: XS::APItest was not built\n";
13 use Test::More tests => 3;
15 BEGIN { use_ok('XS::APItest') };
17 # I can't see a good way to easily get back perl-space diagnostics for these
18 # I hope that this isn't a problem.
20 ok(sv_setsv_cow_hashkey_core,
21 "With PERL_CORE sv_setsv does COW for shared hash key scalars");
23 ok(!sv_setsv_cow_hashkey_core,
24 "With PERL_CORE on 5.8.x sv_setsv doesn't COW for shared hash key scalars");
27 ok(!sv_setsv_cow_hashkey_notcore,
28 "Without PERL_CORE sv_setsv doesn't COW for shared hash key scalars");