diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-08-13 17:29:03 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-08-13 17:29:03 +0000 |
commit | b5b5b2687efaeef0b6970a46fe5b76bdbb4fb3e3 (patch) | |
tree | baddd8748f15f327e08c3a95c7cb5db987706311 /t/superuser--file-conflicts.t | |
parent | ff67b6f59bc756214429c0d986203cd5b50aeaf7 (diff) | |
download | urpmi-b5b5b2687efaeef0b6970a46fe5b76bdbb4fb3e3.tar urpmi-b5b5b2687efaeef0b6970a46fe5b76bdbb4fb3e3.tar.gz urpmi-b5b5b2687efaeef0b6970a46fe5b76bdbb4fb3e3.tar.bz2 urpmi-b5b5b2687efaeef0b6970a46fe5b76bdbb4fb3e3.tar.xz urpmi-b5b5b2687efaeef0b6970a46fe5b76bdbb4fb3e3.zip |
add a test for dir vs symlink conflict
Diffstat (limited to 't/superuser--file-conflicts.t')
-rw-r--r-- | t/superuser--file-conflicts.t | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/t/superuser--file-conflicts.t b/t/superuser--file-conflicts.t index b86073e1..195f5006 100644 --- a/t/superuser--file-conflicts.t +++ b/t/superuser--file-conflicts.t @@ -1,5 +1,10 @@ #!/usr/bin/perl +# a and b contains the same file name, with different content => should fail +# a and c contents the same file name, with same content => should work +# a and d contents the same directory name => should work +# a and e contents the same path for a directory vs a symlink => should fail + use strict; use lib '.', 't'; use helper; @@ -30,6 +35,10 @@ sub test_rpm_same_transaction { test_rpm_i_succeeds('a', 'd'); check_installed_and_remove('a', 'd'); + + # disabled, fail (#32528) + #test_rpm_i_fail('a', 'e'); + #check_nothing_installed(); } sub test_rpm_different_transactions { @@ -37,6 +46,9 @@ sub test_rpm_different_transactions { test_rpm_i_fail('b'); check_installed_names('a'); + test_rpm_i_fail('e'); + check_installed_names('a'); + test_rpm_i_succeeds('c'); check_installed_and_remove('a', 'c'); @@ -55,6 +67,10 @@ sub test_urpmi_same_transaction { urpmi('a d'); check_installed_and_remove('a', 'd'); + + # disabled, fail (#32528) + #urpmi('a e'); + #check_installed_and_remove('a', 'e'); } sub test_urpmi_different_transactions { @@ -62,6 +78,9 @@ sub test_urpmi_different_transactions { test_urpmi_fail('b'); check_installed_names('a'); + test_urpmi_fail('e'); + check_installed_names('a'); + # disabled, fail when dropping RPMTAG_FILEDIGESTS #urpmi('c'); #check_installed_and_remove('a', 'c'); |