Backport another speedup tweak from bleadperl.
[gitmo/Class-C3-XS.git] / t / 05_MRO.t
index d3c6b77..ef400e0 100644 (file)
@@ -6,8 +6,7 @@ use warnings;
 use Test::More tests => 3;
 
 BEGIN {
-    use lib 'opt', '../opt', '..';
-    use_ok('c3');
+    use_ok('Class::C3::XS');
     use_ok('t::lib::F');    
 }
 
@@ -24,10 +23,8 @@ From the parrot test t/pmc/object-meths.t
 
 =cut
 
-Class::C3::initialize();
-
 is_deeply(
-    [ c3::calculateMRO('t::lib::F') ],
+    [ Class::C3::XS::calculateMRO('t::lib::F') ],
     [ qw(t::lib::F t::lib::C t::lib::D t::lib::A t::lib::B t::lib::E) ],
     '... got the right MRO for t::lib::F');