use File::Basename;
use File::Spec;
-use Test::More tests => 45;
+use Test::More tests => 46;
BEGIN { use_ok( 'ExtUtils::Installed' ) }
my $wrotelist;
-ok(scalar mkpath('auto/FakeMod'));
+
+rmtree 'auto/FakeMod';
+ok( mkpath('auto/FakeMod') );
END { rmtree 'auto/FakeMod' }
ok(open(PACKLIST, '>auto/FakeMod/.packlist'));
is( join(' ', $ei->modules()), 'abc def ghi',
'modules() should return sorted keys' );
+# This didn't work for a long time due to a sort in scalar context oddity.
+is( $ei->modules, 3, 'modules() in scalar context' );
+
# files
$ei->{goodmod} = {
packlist => {