You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by do...@apache.org on 2005/05/18 01:31:06 UTC

svn commit: r170687 - /spamassassin/trunk/t/regexp_valid.t

Author: dos
Date: Tue May 17 16:31:05 2005
New Revision: 170687

URL: http://svn.apache.org/viewcvs?rev=170687&view=rev
Log:
die if we can't create file handles in t/regexp_valid.t

Modified:
    spamassassin/trunk/t/regexp_valid.t

Modified: spamassassin/trunk/t/regexp_valid.t
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/t/regexp_valid.t?rev=170687&r1=170686&r2=170687&view=diff
==============================================================================
--- spamassassin/trunk/t/regexp_valid.t (original)
+++ spamassassin/trunk/t/regexp_valid.t Tue May 17 16:31:05 2005
@@ -30,11 +30,11 @@
 
 # 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;