summaryrefslogtreecommitdiff
path: root/mail-filter/spamassassin/files/4.0.1-tests-sa_txrep.t-no-dbm.patch
blob: 6d6b4dd9a02493050290b2d60bdecde904160703 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
https://bugs.gentoo.org/933406
--- a/t/sa_txrep.t
+++ b/t/sa_txrep.t
@@ -4,7 +4,11 @@ use lib '.'; use lib 't';
 use SATest; sa_t_init("sa_txrep");
 
 
-use Test::More tests => 8;
+use Test::More;
+
+my @dbmods = grep eval "require $_", ('DB_File', 'GDBM_File', 'SDBM_File');
+plan skip_all => "No db module is available" unless @dbmods;
+plan tests => 8;
 
 # ---------------------------------------------------------------------------