summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-07 11:45:59 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-07 11:45:59 +0000
commit573e3487d99e76a311cf4b82ba0af95943182d20 (patch)
tree58b81a0ae3ee5b68348e3b2bab4771f0ff8bc742
parenta50f282e577e45d929902d342554f9a3519b9901 (diff)
downloadurpmi-573e3487d99e76a311cf4b82ba0af95943182d20.tar
urpmi-573e3487d99e76a311cf4b82ba0af95943182d20.tar.gz
urpmi-573e3487d99e76a311cf4b82ba0af95943182d20.tar.bz2
urpmi-573e3487d99e76a311cf4b82ba0af95943182d20.tar.xz
urpmi-573e3487d99e76a311cf4b82ba0af95943182d20.zip
add a test showing the lack of promotion
-rw-r--r--t/superuser--split-transactions--strict-require-and-obsolete.t14
1 files changed, 14 insertions, 0 deletions
diff --git a/t/superuser--split-transactions--strict-require-and-obsolete.t b/t/superuser--split-transactions--strict-require-and-obsolete.t
index 6ad4aec9..f02cfbeb 100644
--- a/t/superuser--split-transactions--strict-require-and-obsolete.t
+++ b/t/superuser--split-transactions--strict-require-and-obsolete.t
@@ -22,6 +22,9 @@ urpmi_addmedia("$name-2 $::pwd/media/$name-2");
test('--split-length 0');
test('--split-level 1'); # was broken (#31969)
+test_c('--split-length 0');
+test_c('--split-level 1');
+
sub test {
my ($option) = @_;
@@ -31,3 +34,14 @@ sub test {
urpmi("--media $name-2 $option --auto --auto-select");
check_installed_fullnames_and_remove('a-1-1', 'b-2-1', 'c-2-1');
}
+
+sub test_c {
+ my ($option) = @_;
+
+ urpmi("--media $name-1 --auto a");
+ check_installed_fullnames('a-1-1', 'bb-1-1', 'c-1-1');
+
+ #- below would need the promotion of "b" (obsoleting bb) to work
+ urpmi("--media $name-2 $option --auto c");
+ check_installed_fullnames_and_remove('c-2-1'); # a and bb are removed
+}