From 982005630e24f04984cd4513c213fb70dc6faf3d Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 26 Apr 2022 22:12:59 +0200 Subject: Test removing a non existing rpm --- RPM4/NEWS | 1 + RPM4/t/05transaction.t | 1 + 2 files changed, 2 insertions(+) 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"); -- cgit v1.2.1