Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add stderr check

  • Loading branch information...
commit 2fde55af9d238d99607c130037482a5e757b80d3 1 parent bd5a0e8
@kazeburo authored
Showing with 4 additions and 2 deletions.
  1. +1 −0  Build.PL
  2. +3 −2 t/01_basic.t
View
1  Build.PL
@@ -9,6 +9,7 @@ my $build = Module::Build->new(
build_requires => {
'Test::More' => '0.98',
'Test::Requires' => 0,
+ 'Capture::Tiny' => '0.21'
},
configure_requires => { 'Module::Build' => '0.38' },
requires => {
View
5 t/01_basic.t
@@ -5,6 +5,7 @@ use Test::More;
use Test::Module::Build::Pluggable;
use Module::Build::Pluggable::CPANfile;
use version;
+use Capture::Tiny ':all';
require Module::Build;
my $support_test_requries =
@@ -44,8 +45,8 @@ Build.PL
MANIFEST
...
-$test->run_build_pl();
-
+my $stderr = capture_stderr { $test->run_build_pl() };
+like $stderr, qr/not support 'suggests'/;
my $meta = $test->read_file('_build/prereqs');
ok($meta);
my $prereqs = eval $meta;
Please sign in to comment.
Something went wrong with that request. Please try again.