summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-07-18 09:46:53 +1000
committerDan McGee <dan@archlinux.org>2012-08-02 09:38:58 -0500
commit70d8c2150e33d1a0b9e09d72c5091d661383d641 (patch)
treeacf7c9f05488411e7f6531cee40af41b4e9f710d /test
parent41dae689520b0af0b5226117e77572a24954f075 (diff)
downloadpacman-70d8c2150e33d1a0b9e09d72c5091d661383d641.tar.xz
pactest: avoid upgrade conflict with unchanged effective path
Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'test')
-rw-r--r--test/pacman/tests/fileconflict013.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/pacman/tests/fileconflict013.py b/test/pacman/tests/fileconflict013.py
new file mode 100644
index 00000000..521b62e8
--- /dev/null
+++ b/test/pacman/tests/fileconflict013.py
@@ -0,0 +1,22 @@
+self.description = "file->file path change with same effective path (/lib as symlink)"
+
+lp1 = pmpkg("filesystem", "1.0-1")
+lp1.files = ["usr/",
+ "usr/lib/",
+ "lib -> usr/lib/"]
+self.addpkg2db("local", lp1)
+
+lp2 = pmpkg("pkg1", "1.0-1")
+lp2.files = ["lib/libfoo.so"]
+self.addpkg2db("local", lp2)
+
+sp1 = pmpkg("pkg1", "1.0-2")
+sp1.files = ["usr/lib/libfoo.so"]
+self.addpkg2db("sync", sp1)
+
+self.args = "-Su"
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("PKG_VERSION=pkg1|1.0-2")
+
+self.expectfailure = True