[PATCH 3/6] tests/fsync-y: skip when no /proc

Alyssa Ross hi at alyssa.is
Tue May 4 19:40:55 UTC 2021


---
 tests/fsync-y.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/fsync-y.c b/tests/fsync-y.c
index f42f8345..44d474d1 100644
--- a/tests/fsync-y.c
+++ b/tests/fsync-y.c
@@ -17,6 +17,8 @@
 int
 main(void)
 {
+	skip_if_unavailable("/proc/self/fd/");
+
 	char dir[PATH_MAX + 1];
 
 	const struct {
-- 
2.31.0



More information about the Strace-devel mailing list