summaryrefslogtreecommitdiffstats
path: root/RPM4/t
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2021-06-05 17:02:55 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2022-04-27 00:03:13 +0200
commitf4894c3dfbc6dfce0bc02d260827c96499cd0226 (patch)
tree2f3bc35181491d64ac7bde992a76414aeab2c6ce /RPM4/t
parent4fd24a2d2a7b7faac39d1d70a3cef67a731ea596 (diff)
downloadperl-RPM4-f4894c3dfbc6dfce0bc02d260827c96499cd0226.tar
perl-RPM4-f4894c3dfbc6dfce0bc02d260827c96499cd0226.tar.gz
perl-RPM4-f4894c3dfbc6dfce0bc02d260827c96499cd0226.tar.bz2
perl-RPM4-f4894c3dfbc6dfce0bc02d260827c96499cd0226.tar.xz
perl-RPM4-f4894c3dfbc6dfce0bc02d260827c96499cd0226.zip
Fix & enable Problem tests
Was disabled at least since commit 9e2966a33f9148fdc8ef81783bab1fe18e87bd34 16 years ago
Diffstat (limited to 'RPM4/t')
-rw-r--r--RPM4/t/05transaction.t6
1 files changed, 2 insertions, 4 deletions
diff --git a/RPM4/t/05transaction.t b/RPM4/t/05transaction.t
index b6c07c1..16da607 100644
--- a/RPM4/t/05transaction.t
+++ b/RPM4/t/05transaction.t
@@ -12,7 +12,7 @@ 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;
+ plan tests => 49;
}
# Test on wrong db
@@ -42,11 +42,10 @@ ok($ts->transadd($hd, "$Bin/test-dep-1.0-1mdk.noarch.rpm") == 0, "Adding a packa
ok($ts->transcheck == 0, "Checking transaction works");
ok($ts->transorder == 0, "Run transaction order");
-if (0) {
my $pbs = RPM4::Transaction::Problems->new($ts);
isa_ok(
$pbs,
- 'RPM4::Db::Problems',
+ 'RPM4::Transaction::Problems',
'Can retrieve pb from transaction'
);
@@ -58,7 +57,6 @@ while ($pbs->hasnext) {
$strpb .= $pbs->problem;
}
ok($strpb, "Can get problem description");
-}
ok(defined($ts->transflag([qw(TEST)])), "Set transflags");
#ok($ts->transrun([ qw(LABEL PERCENT) ]) == 0, "Running test transaction");