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

Dmitry V. Levin ldv at altlinux.org
Wed May 5 17:15:50 UTC 2021


On Tue, May 04, 2021 at 07:40:54PM +0000, Alyssa Ross wrote:
> ---
>  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;

Applied, thanks.


-- 
ldv


More information about the Strace-devel mailing list