summaryrefslogtreecommitdiffstats
path: root/t/superuser--obsolete-and-conflict.t
diff options
context:
space:
mode:
Diffstat (limited to 't/superuser--obsolete-and-conflict.t')
-rw-r--r--t/superuser--obsolete-and-conflict.t24
1 files changed, 24 insertions, 0 deletions
diff --git a/t/superuser--obsolete-and-conflict.t b/t/superuser--obsolete-and-conflict.t
new file mode 100644
index 00000000..221f224e
--- /dev/null
+++ b/t/superuser--obsolete-and-conflict.t
@@ -0,0 +1,24 @@
+#!/usr/bin/perl
+
+# package "a" is split into "b" and "c",
+# where "b" obsoletes "a" and requires "c"
+# "c" conflicts with "a" (but can't obsolete it)
+
+use strict;
+use lib '.', 't';
+use helper;
+use Expect;
+use urpm::util;
+use Test::More 'no_plan';
+
+need_root_and_prepare();
+
+my $name = 'obsolete-and-conflict';
+urpmi_addmedia("$name $::pwd/media/$name");
+
+urpmi('a');
+check_installed_names('a');
+
+urpmi('b c');
+
+check_installed_names('b', 'c');