[Mesa-stable] [Fwd: [PATCH] tests/cache_test: allow crossing mount points]

Juan A. Suarez Romero jasuarez at igalia.com
Tue Mar 28 16:57:52 UTC 2017


I've got this problem when testing 17.0, so it would be good to pick
this for next 17.0.x release.


-------- Forwarded Message --------
From: Juan A. Suarez Romero <jasuarez at igalia.com>
To: mesa-dev at lists.freedesktop.org
Cc: Timothy Arceri <tarceri at itsqueeze.com>, Juan A. Suarez Romero <jasu
arez at igalia.com>
Subject: [PATCH] tests/cache_test: allow crossing mount points
Date: Sat, 25 Mar 2017 01:40:14 +0100

When using an overlayfs system (like a Docker container), rmrf_local()
fails because part of the files to be removed are in different mount
points (layouts). And thus cache-test fails.

Letting crossing mount points is not a big problem, specially because
this is just for a test, not to be used in real code.
---
 src/compiler/glsl/tests/cache_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compiler/glsl/tests/cache_test.c b/src/compiler/glsl/tests/cache_test.c
index 2302f44..ac60197 100644
--- a/src/compiler/glsl/tests/cache_test.c
+++ b/src/compiler/glsl/tests/cache_test.c
@@ -124,7 +124,7 @@ rmrf_local(const char *path)
    if (path == NULL || *path == '\0' || *path != '.')
       return -1;
 
-   return nftw(path, remove_entry, 64, FTW_DEPTH | FTW_PHYS | FTW_MOUNT);
+   return nftw(path, remove_entry, 64, FTW_DEPTH | FTW_PHYS);
 }
 
 static void
-- 
2.9.3




More information about the mesa-stable mailing list