diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2021-06-05 17:02:55 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2022-04-27 00:03:13 +0200 |
commit | f4894c3dfbc6dfce0bc02d260827c96499cd0226 (patch) | |
tree | 2f3bc35181491d64ac7bde992a76414aeab2c6ce | |
parent | 4fd24a2d2a7b7faac39d1d70a3cef67a731ea596 (diff) | |
download | perl-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
-rw-r--r-- | RPM4/NEWS | 1 | ||||
-rw-r--r-- | RPM4/t/05transaction.t | 6 |
2 files changed, 3 insertions, 4 deletions
@@ -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"); |