summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--t/02create_pkgs.t3
-rw-r--r--t/data/old-suggests-1-1.noarch.rpmbin0 -> 1396 bytes
-rw-r--r--t/superuser--suggests.t5
3 files changed, 8 insertions, 0 deletions
diff --git a/t/02create_pkgs.t b/t/02create_pkgs.t
index 7d63037b..9d8058e4 100644
--- a/t/02create_pkgs.t
+++ b/t/02create_pkgs.t
@@ -11,6 +11,9 @@ foreach (qw(media tmp tmp/BUILD tmp/RPMS tmp/RPMS/noarch tmp/SRPMS)) {
mkdir $_;
}
+mkdir "media/suggests";
+system_("cp data/old-suggests-1-1.noarch.rpm media/suggests");
+
# locally build test rpms
foreach my $dir (grep { -d $_ } glob("data/SPECS/*")) {
diff --git a/t/data/old-suggests-1-1.noarch.rpm b/t/data/old-suggests-1-1.noarch.rpm
new file mode 100644
index 00000000..628a70e9
--- /dev/null
+++ b/t/data/old-suggests-1-1.noarch.rpm
Binary files differ
diff --git a/t/superuser--suggests.t b/t/superuser--suggests.t
index e6caeaa3..5a5c7027 100644
--- a/t/superuser--suggests.t
+++ b/t/superuser--suggests.t
@@ -30,6 +30,7 @@ test_invalid();
test_upgrade();
test_d();
test_force_suggests();
+test_old_suggests();
sub test_b {
test('b', ['bb'], ['suggested_b']);
@@ -47,6 +48,10 @@ sub test_invalid {
check_installed_and_remove('with-invalid');
}
+sub test_old_suggests {
+ test('old-suggests', [], ['suggested_b']);
+}
+
sub test {
my ($name, $required, $suggested) = @_;
urpmi("--no-suggests --auto $name");