]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/21-bad.t
Fix t/80-regressions.t failing on Win32
[perl/modules/indirect.git] / t / 21-bad.t
index eea745eb863c64e8301c610f528aeabc740e1549..11da77d29c2fabb2f6dfa1300e1bebf8597b7de7 100644 (file)
@@ -11,8 +11,8 @@ use warnings;
 
 my ($tests, $reports);
 BEGIN {
- $tests   = 60;
- $reports = 68;
+ $tests   = 61;
+ $reports = 69;
 }
 
 use Test::More tests => 3 * (4 * $tests + $reports) + 2;
@@ -42,7 +42,7 @@ sub try {
 
  @warns = ();
  {
-  local $SIG{__WARN__} = sub { push @warns, join(' ', @_) };
+  local $SIG{__WARN__} = sub { push @warns, @_ };
   eval $code;
  }
 }
@@ -129,6 +129,10 @@ $obj = new Hlagh;
 ----
 [ 'new', 'Hlagh' ]
 ####
+$obj = new Hlagh if 0;
+----
+[ 'new', 'Hlagh' ]
+####
 $obj = new Hlagh();
 ----
 [ 'new', 'Hlagh' ]