Rename ext/XS/APItest to ext/XS-APItest
[p5sagit/p5-mst-13.2.git] / ext / XS-APItest / t / op.t
1 #!perl -w
2
3 BEGIN {
4   chdir 't' if -d 't';
5   @INC = '../lib';
6   push @INC, "::lib:$MacPerl::Architecture:" if $^O eq 'MacOS';
7   require Config; import Config;
8   if ($Config{'extensions'} !~ /\bXS\/APItest\b/) {
9     # Look, I'm using this fully-qualified variable more than once!
10     my $arch = $MacPerl::Architecture;
11     print "1..0 # Skip: XS::APItest was not built\n";
12     exit 0;
13   }
14   if ($] < 5.009) {
15     print "1..0 # Skip: hints hash not present before 5.10.0\n";
16     exit 0;
17   }
18 }
19
20 use strict;
21 use utf8;
22 use Test::More 'no_plan';
23
24 use_ok('XS::APItest');
25
26 *hint_exists = *hint_exists = \&XS::APItest::Hash::refcounted_he_exists;
27 *hint_fetch = *hint_fetch = \&XS::APItest::Hash::refcounted_he_fetch;
28
29 require './op/caller.pl';