From: Mike S. <m...@pe...> - 2006-10-15 19:25:53
|
On Sun, 15 Oct 2006, Lars Thegler wrote: > The test fails under perl 5.005_03: > > --cut-- > not ok 14 - Autocorrecting rootLogger/rootlogger typo > # Failed test 'Autocorrecting rootLogger/rootlogger typo' > # in t/004Config.t at line 235. > # got: undef > # expected: '' > --cut-- Thanks for this. I guess it's not easy dealing with an 8 year old perl release :). I've included it in the next release 1.08. -- Mike Mike Schilli m...@pe... > The following patch fixes this, and works correctly on newer perls as > well (tested on 5.6.2 and 5.8.8): > > --cut-- > --- t/004Config.t.orig Sun Oct 15 17:57:11 2006 > +++ t/004Config.t Sun Oct 15 18:03:08 2006 > @@ -203,7 +203,7 @@ > ###################################################################### > open STDERR, ">$TMP_FILE"; > open IN, "<$TMP_FILE" or die "Cannot open $TMP_FILE"; > -sub readwarn { return scalar <IN>; } > +sub readwarn { return scalar <IN> || ''; } > END { close IN } > --cut-- > > /Lars > |