/[Apache-SVN]/spamassassin/trunk/t/regexp_valid.t
ViewVC logotype

Diff of /spamassassin/trunk/t/regexp_valid.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- spamassassin/trunk/t/regexp_valid.t	2005/05/17 22:48:08	170686
+++ spamassassin/trunk/t/regexp_valid.t	2005/05/17 23:31:05	170687
@@ -30,11 +30,11 @@ $sa->init(0); # parse rules
 
 # make a _copy_ of the STDERR file descriptor
 # (so we can restore it after redirecting it)
-open(OLDERR, ">&STDERR");
+open(OLDERR, ">&STDERR") || die "Cannot copy STDERR file handle";
 
 # create a file descriptior for logging STDERR
 # (we do not want warnings for regexps we know are invalid)
-open(LOGERR, ">".IO::File->new_tmpfile());
+open(LOGERR, ">".IO::File->new_tmpfile()) || die "Cannot create LOGERR temp file";
 
 # quiet "used only once" warnings
 1 if *OLDERR;

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26