5 use Test::More tests => 1;
6 use lib (-d 't' ? File::Spec->catdir(qw(t lib)) : 'lib');
7 use ExtUtils::ParseXS qw(process_file);
11 # Module-Build uses ExtUtils::ParseXS with $^W set, try to avoid
12 # warning in that case.
16 open my $out_fh, ">", \$out;
18 local $SIG{__WARN__} = sub { push @warnings, "@_" };
19 process_file(filename => "XSWarn.xs", output => $out_fh);
20 is_deeply(\@warnings, [], "shouldn't be any warnings");