From f4894c3dfbc6dfce0bc02d260827c96499cd0226 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 5 Jun 2021 17:02:55 +0200 Subject: Fix & enable Problem tests Was disabled at least since commit 9e2966a33f9148fdc8ef81783bab1fe18e87bd34 16 years ago --- RPM4/NEWS | 1 + RPM4/t/05transaction.t | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/RPM4/NEWS b/RPM4/NEWS index 5236b7c..b1b11dc 100644 --- a/RPM4/NEWS +++ b/RPM4/NEWS @@ -1,5 +1,6 @@ - Testsuite: o Fix failure with rpm-4.17.0+ + o Re-enable some tests disabled long ago Version 0.44 - 14 December 2020 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"); -- cgit v1.2.1