Undo #16091, a time-warped escapee.
[p5sagit/p5-mst-13.2.git] / lib / ExtUtils / t / prefixify.t
CommitLineData
e0678a30 1#!/usr/bin/perl -w
2
3BEGIN {
4 if( $ENV{PERL_CORE} ) {
5 chdir 't' if -d 't';
6 @INC = ('../lib', 'lib');
7 }
8 else {
9 unshift @INC, 't/lib';
10 }
11}
12
13use strict;
14use Test::More tests => 1;
15use File::Spec;
16use ExtUtils::MM;
17
18my $mm = bless {}, 'MM';
19
20my $default = File::Spec->catdir(qw(this that));
21$mm->prefixify('installbin', 'wibble', 'something', $default);
5c161494 22
e0678a30 23is( $mm->{INSTALLBIN}, File::Spec->catdir('something', $default),
24 'prefixify w/defaults');