diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-08-13 14:21:44 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-08-13 14:21:44 +0000 |
commit | c992e5fb8eeff8a345d16aa73866a320219fbf8b (patch) | |
tree | 6a0b7dd027b0dc886eec3d60b7ff177686c38fc2 /t/superuser--file-conflicts.t | |
parent | 03015def2d8eb9e344d2266f5b8f809c796ad66b (diff) | |
download | urpmi-c992e5fb8eeff8a345d16aa73866a320219fbf8b.tar urpmi-c992e5fb8eeff8a345d16aa73866a320219fbf8b.tar.gz urpmi-c992e5fb8eeff8a345d16aa73866a320219fbf8b.tar.bz2 urpmi-c992e5fb8eeff8a345d16aa73866a320219fbf8b.tar.xz urpmi-c992e5fb8eeff8a345d16aa73866a320219fbf8b.zip |
add one "directory owned by 2 rpms" test
Diffstat (limited to 't/superuser--file-conflicts.t')
-rw-r--r-- | t/superuser--file-conflicts.t | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/t/superuser--file-conflicts.t b/t/superuser--file-conflicts.t index 8580b6f5..32e04489 100644 --- a/t/superuser--file-conflicts.t +++ b/t/superuser--file-conflicts.t @@ -27,16 +27,22 @@ sub test_rpm_same_transaction { test_rpm_i_succeeds('a', 'c'); check_installed_and_remove('a', 'c'); + + test_rpm_i_succeeds('a', 'd'); + check_installed_and_remove('a', 'd'); } sub test_rpm_different_transactions { test_rpm_i_succeeds('a'); - test_rpm_i_fail('b'); check_installed_names('a'); test_rpm_i_succeeds('c'); check_installed_and_remove('a', 'c'); + + test_rpm_i_succeeds('a'); + test_rpm_i_succeeds('d'); + check_installed_and_remove('a', 'd'); } sub test_urpmi_same_transaction { @@ -46,17 +52,23 @@ sub test_urpmi_same_transaction { urpmi('a c'); check_installed_and_remove('a', 'c'); + + urpmi('a d'); + check_installed_and_remove('a', 'd'); } sub test_urpmi_different_transactions { urpmi('a'); - test_urpmi_fail('b'); check_installed_names('a'); # disabled, fail when dropping RPMTAG_FILEDIGESTS #urpmi('c'); #check_installed_and_remove('a', 'c'); + + #urpmi('a'); + urpmi('d'); + check_installed_and_remove('a', 'd'); } sub test_rpm_i_succeeds { |