diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2022-04-26 22:12:59 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2022-04-27 00:05:47 +0200 |
commit | 982005630e24f04984cd4513c213fb70dc6faf3d (patch) | |
tree | 450ed9b0a4616666d11d9aea44baf0c3482af3e6 /RPM4/t | |
parent | 8e84bfb74fe6d6bef96a3d67dd3b4b4346e14c16 (diff) | |
download | perl-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.t | 1 |
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"); |