summaryrefslogtreecommitdiffstats
path: root/RPM4/t/05transaction.t
diff options
context:
space:
mode:
Diffstat (limited to 'RPM4/t/05transaction.t')
-rw-r--r--RPM4/t/05transaction.t8
1 files changed, 7 insertions, 1 deletions
diff --git a/RPM4/t/05transaction.t b/RPM4/t/05transaction.t
index fe6e405..66d6444 100644
--- a/RPM4/t/05transaction.t
+++ b/RPM4/t/05transaction.t
@@ -2,13 +2,19 @@
# $Id$
use strict;
-use Test::More tests => 45;
+use Test::More;
use FindBin qw($Bin);
use File::Path;
use File::Temp qw(tempdir);
use RPM4;
use RPM4::Transaction::Problems;
+if (-e '/etc/debian_version' || `uname -a` =~ /BSD/i) {
+ plan skip_all => "*BSD/Debian/Ubuntu do not have a system wide rpmdb";
+} else {
+ plan tests => 45;
+}
+
# Test on wrong db
RPM4::add_macro("_dbpath /dev/null");
ok(RPM4::rpmdbverify != 0, "Verify non existing database (get error)");