dev-util/ccache: disable size cleanup test, bug #649440
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 2 Feb 2019 23:39:40 +0000 (23:39 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 2 Feb 2019 23:40:01 +0000 (23:40 +0000)
Disable "Forced cache cleanup, size limit" test as it
relies on stable block size of filesystem where tests
are performed. Assumption does not hold true for ecryptfs
and btrfs. Disable test.

Reported-by: Michał Górny
Closes: https://bugs.gentoo.org/649440
Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
dev-util/ccache/ccache-3.6.ebuild
dev-util/ccache/files/ccache-3.6-disable-sized-cleanup.patch [new file with mode: 0644]

index 105a8bada3e69807665084ca49526d476affdd46..c5335c505f37734a0b6df25adbcde8d982195824 100644 (file)
@@ -23,6 +23,7 @@ RDEPEND="${DEPEND}
 PATCHES=(
        "${FILESDIR}"/${PN}-3.4-size-on-disk.patch #456178
        "${FILESDIR}"/${PN}-3.5-nvcc-test.patch
+       "${FILESDIR}"/${PN}-3.6-disable-sized-cleanup.patch #649440
 )
 
 src_prepare() {
diff --git a/dev-util/ccache/files/ccache-3.6-disable-sized-cleanup.patch b/dev-util/ccache/files/ccache-3.6-disable-sized-cleanup.patch
new file mode 100644 (file)
index 0000000..2b12542
--- /dev/null
@@ -0,0 +1,25 @@
+https://bugs.gentoo.org/649440
+
+Disable cleanup based on free filesystem size.
+
+--- a/test/suites/cleanup.bash
++++ b/test/suites/cleanup.bash
+@@ -75,6 +75,9 @@ SUITE_cleanup() {
+     done
+     # -------------------------------------------------------------------------
++# Disable test in Gentoo as we don't control temporary filesystem:
++#     https://bugs.gentoo.org/649440
++if false; then
+     TEST "Forced cache cleanup, size limit"
+     # NOTE: This test is known to fail on filesystems that have unusual block
+@@ -101,7 +104,7 @@ SUITE_cleanup() {
+         file=$CCACHE_DIR/a/result$i-4017.o
+         expect_file_exists $file
+     done
+-
++fi
+     # -------------------------------------------------------------------------
+     TEST "Automatic cache cleanup, limit_multiple 0.9"