diff options
Diffstat (limited to 't')
-rw-r--r-- | t/lib/MakeMaker/Test/Setup/Recurs.pm | 8 | ||||
-rw-r--r-- | t/lib/MakeMaker/Test/Utils.pm | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/t/lib/MakeMaker/Test/Setup/Recurs.pm b/t/lib/MakeMaker/Test/Setup/Recurs.pm index c8b7379348..d3585eb9c2 100644 --- a/t/lib/MakeMaker/Test/Setup/Recurs.pm +++ b/t/lib/MakeMaker/Test/Setup/Recurs.pm @@ -27,6 +27,14 @@ WriteMakefile( VERSION => 1.00, ); END + + # Check if a test failure in a subdir causes make test to fail + 'Recurs/prj2/t/fail.t' => <<'END', +#!/usr/bin/perl -w + +print "1..1\n"; +print "not ok 1\n"; +END ); sub setup_recurs { diff --git a/t/lib/MakeMaker/Test/Utils.pm b/t/lib/MakeMaker/Test/Utils.pm index 0d6afc33ab..fb8162d2cd 100644 --- a/t/lib/MakeMaker/Test/Utils.pm +++ b/t/lib/MakeMaker/Test/Utils.pm @@ -251,7 +251,7 @@ would expect to see on a screen. sub run { my $cmd = shift; - require ExtUtils::MM; + use ExtUtils::MM; # Unix can handle 2>&1 and OS/2 from 5.005_54 up. # This makes our failure diagnostics nicer to read. @@ -304,7 +304,7 @@ sub have_compiler { # ExtUtils::CBuilder prints its compilation lines to the screen. # Shut it up. - require TieOut; + use TieOut; local *STDOUT = *STDOUT; local *STDERR = *STDERR; |