You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2004/05/10 19:54:30 UTC
svn commit: rev 10583 - incubator/spamassassin/trunk/t
Author: jm
Date: Mon May 10 10:54:29 2004
New Revision: 10583
Modified:
incubator/spamassassin/trunk/t/hashcash.t
Log:
need DB_File for this test
Modified: incubator/spamassassin/trunk/t/hashcash.t
==============================================================================
--- incubator/spamassassin/trunk/t/hashcash.t (original)
+++ incubator/spamassassin/trunk/t/hashcash.t Mon May 10 10:54:29 2004
@@ -2,7 +2,13 @@
use lib '.'; use lib 't';
use SATest; sa_t_init("hashcash");
-use Test; BEGIN { plan tests => 2 };
+
+# we need DB_File to support the double-spend db.
+use constant HAS_DB_FILE => eval { require DB_File; };
+
+use Test; BEGIN { plan tests => HAS_DB_FILE ? 2 : 0 };
+
+exit unless HAS_DB_FILE;
# ---------------------------------------------------------------------------