[PATCH 2/6] tests/dev-*: skip when no /proc

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


---
 tests/dev-yy.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/dev-yy.c b/tests/dev-yy.c
index 0ffb0c4c..8631efb8 100644
--- a/tests/dev-yy.c
+++ b/tests/dev-yy.c
@@ -33,6 +33,8 @@
 int
 main(void)
 {
+	skip_if_unavailable("/proc/self/fd/");
+
 	static const struct {
 		const char *path;
 		unsigned int major;
-- 
2.31.0



More information about the Strace-devel mailing list