summaryrefslogtreecommitdiffstats
path: root/t/superuser--file-conflicts.t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-01-23 16:45:54 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-01-23 16:45:54 +0000
commit9787a9b8236fd9aab9c6538cd9e5125a3ec3839c (patch)
tree93c601274753eec3151919f05781ac1ae8ef562c /t/superuser--file-conflicts.t
parentf3f08065dd081691d0abd06da356c7eb4be44c5f (diff)
downloadurpmi-9787a9b8236fd9aab9c6538cd9e5125a3ec3839c.tar
urpmi-9787a9b8236fd9aab9c6538cd9e5125a3ec3839c.tar.gz
urpmi-9787a9b8236fd9aab9c6538cd9e5125a3ec3839c.tar.bz2
urpmi-9787a9b8236fd9aab9c6538cd9e5125a3ec3839c.tar.xz
urpmi-9787a9b8236fd9aab9c6538cd9e5125a3ec3839c.zip
add a test case: conflicting manpages
Diffstat (limited to 't/superuser--file-conflicts.t')
-rw-r--r--t/superuser--file-conflicts.t15
1 files changed, 15 insertions, 0 deletions
diff --git a/t/superuser--file-conflicts.t b/t/superuser--file-conflicts.t
index 32e6ec1c..b2a8e6da 100644
--- a/t/superuser--file-conflicts.t
+++ b/t/superuser--file-conflicts.t
@@ -10,6 +10,8 @@
# a and gc/gc_/gd contains different file => should work
# ga and a and gc/gc_ contains the same resulting file, through symlink in ga, with same content => should work
# ga and a and gd contains the same resulting file, through symlink in ga, with different content => should fail
+#
+# h and i file conflicts, but on a manpage
use strict;
use lib '.', 't';
@@ -57,6 +59,9 @@ sub test_rpm_same_transaction {
test_rpm_i_succeeds('fa', 'fb');
check_installed_and_remove('fa', 'fb');
+
+ test_rpm_i_succeeds('h', 'i');
+ check_installed_and_remove('h', 'i');
}
sub test_rpm_different_transactions {
@@ -99,6 +104,10 @@ sub test_rpm_different_transactions {
urpme('gc gc_'); # if you remove gc and a/ga at the same time, hell can happen...
check_installed_and_remove('a', 'ga');
check_no_etc_files();
+
+ test_rpm_i_succeeds('h');
+ test_rpm_i_succeeds('i');
+ check_installed_and_remove('h', 'i');
}
sub test_urpmi_same_transaction {
@@ -127,6 +136,9 @@ sub test_urpmi_same_transaction {
urpmi('fa fb');
check_installed_and_remove('fa', 'fb');
+
+ urpmi('h i');
+ check_installed_and_remove('h', 'i');
}
sub test_urpmi_different_transactions {
@@ -171,6 +183,9 @@ sub test_urpmi_different_transactions {
check_installed_and_remove('a', 'ga');
check_no_etc_files();
+ urpmi('h');
+ urpmi('i');
+ check_installed_and_remove('h', 'i');
}
sub test_rpm_i_succeeds {