[Rt-commit] r9044 - rt/branches/3.7-EXPERIMENTAL/lib/RT

ruz at bestpractical.com ruz at bestpractical.com
Thu Sep 13 15:55:35 EDT 2007


Author: ruz
Date: Thu Sep 13 15:55:34 2007
New Revision: 9044

Modified:
   rt/branches/3.7-EXPERIMENTAL/lib/RT/Test.pm

Log:
* don't die if we couldn't open a file, just warn

Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Test.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Test.pm	(original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Test.pm	Thu Sep 13 15:55:34 2007
@@ -444,7 +444,7 @@
     diag "reading content of '$path'" if $ENV{'TEST_VERBOSE'};
 
     open my $fh, "<:raw", $path
-        or die "couldn't open file '$path': $!";
+        or do { warn "couldn't open file '$path': $!"; return '' };
     my $content = do { local $/; <$fh> };
     close $fh;
 


More information about the Rt-commit mailing list