--- /dev/null
+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"
+