summaryrefslogtreecommitdiff
path: root/test/pacman/tests/TESTS
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2017-04-09 19:49:17 -0400
committerAndrew Gregory <andrew.gregory.8@gmail.com>2017-05-08 23:27:44 -0400
commit0fd8455c66ae574e479f9d9a645f2e8366bac993 (patch)
treefbebbef6602275cbfb1611c424457276bea56474 /test/pacman/tests/TESTS
parent908769b54002e104b90ab2b3e5ca8066affd4394 (diff)
downloadpacman-0fd8455c66ae574e479f9d9a645f2e8366bac993.tar.xz
unlink_file: strip trailing slashes
If the user replaces a directory with a symlink, libalpm would get confused because the trailing slash causes system calls to resolve the symlink. This leads to errors and a misleading message during upgrades. Even though libalpm does not support this, it should not be giving misleading errors. Also adds an overflow check. Fixes FS#51377 Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> (cherry picked from commit 16b91f798faf6413f9b043543c5c0c3467b6fdbf)
Diffstat (limited to 'test/pacman/tests/TESTS')
-rw-r--r--test/pacman/tests/TESTS1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/pacman/tests/TESTS b/test/pacman/tests/TESTS
index 81078a58..9da24589 100644
--- a/test/pacman/tests/TESTS
+++ b/test/pacman/tests/TESTS
@@ -109,6 +109,7 @@ TESTS += test/pacman/tests/querycheck002.py
TESTS += test/pacman/tests/querycheck_fast_file_type.py
TESTS += test/pacman/tests/reason001.py
TESTS += test/pacman/tests/remove-assumeinstalled.py
+TESTS += test/pacman/tests/remove-directory-replaced-with-symlink.py
TESTS += test/pacman/tests/remove-optdepend-of-installed-package.py
TESTS += test/pacman/tests/remove-recursive-cycle.py
TESTS += test/pacman/tests/remove001.py