more diagnostics to help debug the *occasional* failures of this test on win32
[p5sagit/local-lib.git] / t / classmethod.t
CommitLineData
4c375968 1
2use strict;
3use warnings;
4use Test::More 'no_plan';
5use local::lib ();
6
7
8my $c = 'local::lib';
9
10
11{
12
13is($c->resolve_empty_path, '~/perl5');
14is($c->resolve_empty_path('foo'), 'foo');
15
16}
17
18{
19
3ad7da2f 20no warnings 'once';
4c375968 21local *File::Spec::rel2abs = sub { shift; 'FOO'.shift; };
22is($c->resolve_relative_path('bar'),'FOObar');
23
24}
25
26{
27
28File::Path::rmtree('t/var/splat');
29
30$c->ensure_dir_structure_for('t/var/splat');
31
32ok(-d 't/var/splat');
33
4c375968 34}