File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ use strict;
2+ use warnings;
3+
4+ use Test::More tests => 3;
5+ use ExtUtils::Manifest qw( maniskip ) ;
6+
7+ # ABSTRACT: Ensure include-default is memory only
8+
9+ use lib ' t/tlib' ;
10+ use Test::TempDir::Tiny qw( in_tempdir ) ;
11+ use ByteSlurper qw( write_bytes read_bytes ) ;
12+
13+ in_tempdir ' no-default-expansions' => sub {
14+
15+ write_bytes( ' MANIFEST.SKIP' , qq[ #!include_default] );
16+
17+ my $skipchk = maniskip();
18+
19+ my $skipcontents = read_bytes(' MANIFEST.SKIP' );
20+
21+ unlike( $skipcontents , qr / #!start\s *included/ , ' include_default not expanded on disk' );
22+
23+ ok( $skipchk -> (' Makefile' ), ' Makefile still skipped by default' );
24+ ok( !$skipchk -> (' Makefile.PL' ), ' Makefile.PL still not skipped by default' );
25+ };
26+ done_testing;
You can’t perform that action at this time.
0 commit comments