summaryrefslogtreecommitdiffstats
path: root/RPM4/t
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 /RPM4/t
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
Diffstat (limited to 'RPM4/t')
-rw-r--r--RPM4/t/05transaction.t1
1 files changed, 1 insertions, 0 deletions
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");