summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2022-04-26 22:12:59 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2022-04-27 00:05:47 +0200
commit982005630e24f04984cd4513c213fb70dc6faf3d (patch)
tree450ed9b0a4616666d11d9aea44baf0c3482af3e6
parent8e84bfb74fe6d6bef96a3d67dd3b4b4346e14c16 (diff)
downloadperl-RPM4-982005630e24f04984cd4513c213fb70dc6faf3d.tar
perl-RPM4-982005630e24f04984cd4513c213fb70dc6faf3d.tar.gz
perl-RPM4-982005630e24f04984cd4513c213fb70dc6faf3d.tar.bz2
perl-RPM4-982005630e24f04984cd4513c213fb70dc6faf3d.tar.xz
perl-RPM4-982005630e24f04984cd4513c213fb70dc6faf3d.zip
Test removing a non existing rpm
-rw-r--r--RPM4/NEWS1
-rw-r--r--RPM4/t/05transaction.t1
2 files changed, 2 insertions, 0 deletions
diff --git a/RPM4/NEWS b/RPM4/NEWS
index f97923b..9efd06e 100644
--- a/RPM4/NEWS
+++ b/RPM4/NEWS
@@ -1,6 +1,7 @@
- Fix detecting 4.18-alpha1
- Testsuite:
o Fix failure with rpm-4.17.0+
+ o Increase testsuite coverage
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 329a7c4..876300a 100644
--- a/RPM4/t/05transaction.t
+++ b/RPM4/t/05transaction.t
@@ -97,6 +97,7 @@ ok($ts->traverse(sub {
ok($found == 1, "The previously installed rpm is found");
ok($roffset > 0, "Retrieve offset db");
+ok($ts->transremove_pkg("foobar") == 0, "Try to remove a non existing rpm");
ok($ts->transremove_pkg("test-rpm(1.0-1mdk)") == 1, "Try to remove a rpm");
ok($ts->transcheck == 0, "Checking transaction works");
ok(!defined($ts->transreset), "Reseting current transaction");